diff --git a/public/base64-encoding b/public/base64-encoding index 1ba5f17..84b987a 100644 --- a/public/base64-encoding +++ b/public/base64-encoding @@ -144,7 +144,7 @@ but they both decode to the original string as desired.

-
$ go run base64-encoding.sh
+            
$ go run base64-encoding.go
 YWJjMTIzIT8kKiYoKSctPUB+
 abc123!?$*&()'-=@~
 
diff --git a/public/mutexes b/public/mutexes index addec28..8a076a7 100644 --- a/public/mutexes +++ b/public/mutexes @@ -200,7 +200,7 @@ using the same pattern we did for reads.

-

Let the 110 goroutines work on the state and +

Let the 10 goroutines work on the state and mutex for a second.

diff --git a/public/string-functions b/public/string-functions index 9f5f42a..9fb9bc7 100644 --- a/public/string-functions +++ b/public/string-functions @@ -102,7 +102,7 @@ as the first argument to the function.

p("Replace: ", s.Replace("foo", "o", "0", -1)) p("Replace: ", s.Replace("foo", "o", "0", 1)) p("Split: ", s.Split("a-b-c-d-e", "-")) - p("toLower: ", s.ToLower("TEST")) + p("ToLower: ", s.ToLower("TEST")) p("ToUpper: ", s.ToUpper("test")) p()
diff --git a/public/timeouts b/public/timeouts index 4d9dda1..0a79faa 100644 --- a/public/timeouts +++ b/public/timeouts @@ -78,7 +78,7 @@ after 2s.

-
    c1 := make(chan string)
+            
    c1 := make(chan string, 1)
     go func() {
         time.Sleep(time.Second * 2)
         c1 <- "result 1"
@@ -117,7 +117,7 @@ from c2 will succeed and we’ll print the result.

-
    c2 := make(chan string)
+            
    c2 := make(chan string, 1)
     go func() {
         time.Sleep(time.Second * 2)
         c2 <- "result 2"