diff --git a/public/arrays b/public/arrays index 9e66c1c..c32e5b9 100644 --- a/public/arrays +++ b/public/arrays @@ -28,7 +28,7 @@ specific length.

- +
package main
 
diff --git a/public/atomic-counters b/public/atomic-counters index 2c6bd65..a9ec770 100644 --- a/public/atomic-counters +++ b/public/atomic-counters @@ -32,7 +32,7 @@ counters accessed by multiple goroutines.

- +
package main
 
diff --git a/public/base64-encoding b/public/base64-encoding index 10b0b46..5a82f4c 100644 --- a/public/base64-encoding +++ b/public/base64-encoding @@ -28,7 +28,7 @@ encoding/decoding.

- +
package main
 
diff --git a/public/channel-buffering b/public/channel-buffering index defe3eb..5cf8cb1 100644 --- a/public/channel-buffering +++ b/public/channel-buffering @@ -32,7 +32,7 @@ those values.

- +
package main
 
diff --git a/public/channel-directions b/public/channel-directions index 16483a7..d989de8 100644 --- a/public/channel-directions +++ b/public/channel-directions @@ -30,7 +30,7 @@ the program.

- +
package main
 
diff --git a/public/channel-synchronization b/public/channel-synchronization index 61f2763..f860261 100644 --- a/public/channel-synchronization +++ b/public/channel-synchronization @@ -31,7 +31,7 @@ you may prefer to use a WaitGroup.

- +
package main
 
diff --git a/public/channels b/public/channels index b181c4f..a41776a 100644 --- a/public/channels +++ b/public/channels @@ -30,7 +30,7 @@ goroutine.

- +
package main
 
diff --git a/public/closing-channels b/public/closing-channels index 73c5a79..3ad1396 100644 --- a/public/closing-channels +++ b/public/closing-channels @@ -29,7 +29,7 @@ completion to the channel’s receivers.

- +
package main
 
diff --git a/public/closures b/public/closures index 6a3ebc4..5cab1c8 100644 --- a/public/closures +++ b/public/closures @@ -30,7 +30,7 @@ a function inline without having to name it.

- +
package main
 
diff --git a/public/collection-functions b/public/collection-functions index 564c960..6aae10a 100644 --- a/public/collection-functions +++ b/public/collection-functions @@ -61,7 +61,7 @@ helper function.

- +
package main
 
diff --git a/public/command-line-arguments b/public/command-line-arguments index c6193c3..02470c5 100644 --- a/public/command-line-arguments +++ b/public/command-line-arguments @@ -30,7 +30,7 @@ For example, go run hello.go uses run and - +
package main
 
diff --git a/public/command-line-flags b/public/command-line-flags index 88bd23c..47341d4 100644 --- a/public/command-line-flags +++ b/public/command-line-flags @@ -30,7 +30,7 @@ command-line flag.

- +
package main
 
diff --git a/public/constants b/public/constants index 80a89c5..a53a96f 100644 --- a/public/constants +++ b/public/constants @@ -28,7 +28,7 @@ and numeric values.

- +
package main
 
diff --git a/public/defer b/public/defer index a161789..6e2ed91 100644 --- a/public/defer +++ b/public/defer @@ -30,7 +30,7 @@ purposes of cleanup. defer is often used where e.g. - +
package main
 
diff --git a/public/environment-variables b/public/environment-variables index 10ab446..7e652d1 100644 --- a/public/environment-variables +++ b/public/environment-variables @@ -30,7 +30,7 @@ Let’s look at how to set, get, and list environment variables.

- +
package main
 
diff --git a/public/epoch b/public/epoch index 22014fe..aff0719 100644 --- a/public/epoch +++ b/public/epoch @@ -30,7 +30,7 @@ Here’s how to do it in Go.

- +
package main
 
diff --git a/public/errors b/public/errors index ee2e50c..59cfb7e 100644 --- a/public/errors +++ b/public/errors @@ -34,7 +34,7 @@ non-error tasks.

- +
package main
 
diff --git a/public/execing-processes b/public/execing-processes index 61871e5..00af59f 100644 --- a/public/execing-processes +++ b/public/execing-processes @@ -35,7 +35,7 @@ function.

- +
package main
 
diff --git a/public/exit b/public/exit index 1b38aee..bb8c7d8 100644 --- a/public/exit +++ b/public/exit @@ -28,7 +28,7 @@ status.

- +
package main
 
diff --git a/public/for b/public/for index c854062..6dc96af 100644 --- a/public/for +++ b/public/for @@ -28,7 +28,7 @@ three basic types of for loops.

- +
package main
 
diff --git a/public/functions b/public/functions index 937f5b4..7f21857 100644 --- a/public/functions +++ b/public/functions @@ -28,7 +28,7 @@ functions with a few different examples.

- +
package main
 
diff --git a/public/goroutines b/public/goroutines index f1f8d18..df884f2 100644 --- a/public/goroutines +++ b/public/goroutines @@ -27,7 +27,7 @@ - +
package main
 
diff --git a/public/hello-world b/public/hello-world index e77ae10..49a6220 100644 --- a/public/hello-world +++ b/public/hello-world @@ -18,7 +18,7 @@ message. Here’s the full source code.

- +
package main
 
diff --git a/public/if-else b/public/if-else index b3415eb..00787c4 100644 --- a/public/if-else +++ b/public/if-else @@ -28,7 +28,7 @@ straight-forward.

- +
package main
 
diff --git a/public/interfaces b/public/interfaces index cf62c06..c0f956e 100644 --- a/public/interfaces +++ b/public/interfaces @@ -28,7 +28,7 @@ signatures.

- +
package main
 
diff --git a/public/json b/public/json index 4d1d210..fe40d60 100644 --- a/public/json +++ b/public/json @@ -29,7 +29,7 @@ data types.

- +
package main
 
diff --git a/public/line-filters b/public/line-filters index 57c6c02..93b704a 100644 --- a/public/line-filters +++ b/public/line-filters @@ -33,7 +33,7 @@ pattern to write your own Go line filters.

- +
package main
 
diff --git a/public/maps b/public/maps index 255af49..4a724b1 100644 --- a/public/maps +++ b/public/maps @@ -28,7 +28,7 @@ - +
package main
 
diff --git a/public/methods b/public/methods index c9f41c7..ef53567 100644 --- a/public/methods +++ b/public/methods @@ -27,7 +27,7 @@ - +
package main
 
diff --git a/public/multiple-return-values b/public/multiple-return-values index 788bfa0..3961507 100644 --- a/public/multiple-return-values +++ b/public/multiple-return-values @@ -29,7 +29,7 @@ to return both result and error values from a function.

- +
package main
 
diff --git a/public/mutexes b/public/mutexes index 14c744f..6bc013e 100644 --- a/public/mutexes +++ b/public/mutexes @@ -30,7 +30,7 @@ to safely access data across multiple goroutines.

- +
package main
 
diff --git a/public/non-blocking-channel-operations b/public/non-blocking-channel-operations index 0c9a02e..30c1560 100644 --- a/public/non-blocking-channel-operations +++ b/public/non-blocking-channel-operations @@ -30,7 +30,7 @@ non-blocking multi-way selects.

- +
package main
 
diff --git a/public/number-parsing b/public/number-parsing index 3636f60..56c83a2 100644 --- a/public/number-parsing +++ b/public/number-parsing @@ -28,7 +28,7 @@ in many programs; here’s how to do it in Go.

- +
package main
 
diff --git a/public/panic b/public/panic index be7c598..10fc46b 100644 --- a/public/panic +++ b/public/panic @@ -30,7 +30,7 @@ aren’t prepared to handle gracefully.

- +
package main
 
diff --git a/public/pointers b/public/pointers index cef55a7..e24ff9b 100644 --- a/public/pointers +++ b/public/pointers @@ -29,7 +29,7 @@ within your program.

- +
package main
 
diff --git a/public/random-numbers b/public/random-numbers index fadc00c..1d7ebd8 100644 --- a/public/random-numbers +++ b/public/random-numbers @@ -29,7 +29,7 @@ generation.

- +
package main
 
diff --git a/public/range b/public/range index 37bb665..ead2dea 100644 --- a/public/range +++ b/public/range @@ -29,7 +29,7 @@ of the data structures we’ve already learned.

- +
package main
 
diff --git a/public/range-over-channels b/public/range-over-channels index 0b54622..b6cb1a6 100644 --- a/public/range-over-channels +++ b/public/range-over-channels @@ -30,7 +30,7 @@ values received from a channel.

- +
package main
 
diff --git a/public/rate-limiting b/public/rate-limiting index 7518033..b41c17f 100644 --- a/public/rate-limiting +++ b/public/rate-limiting @@ -31,7 +31,7 @@ channels, and tickers.

- +
package main
 
diff --git a/public/reading-files b/public/reading-files index b002ac9..4aeef67 100644 --- a/public/reading-files +++ b/public/reading-files @@ -29,7 +29,7 @@ reading files.

- +
package main
 
diff --git a/public/recursion b/public/recursion index f2048f1..2bb2a9d 100644 --- a/public/recursion +++ b/public/recursion @@ -29,7 +29,7 @@ Here’s a classic factorial example.

- +
package main
 
diff --git a/public/regular-expressions b/public/regular-expressions index cd93713..0fdd469 100644 --- a/public/regular-expressions +++ b/public/regular-expressions @@ -29,7 +29,7 @@ in Go.

- +
package main
 
diff --git a/public/select b/public/select index 04ca348..12a5aa2 100644 --- a/public/select +++ b/public/select @@ -29,7 +29,7 @@ select is a powerful feature of Go.

- +
package main
 
diff --git a/public/sha1-hashes b/public/sha1-hashes index 5b9aeed..a0cb8c5 100644 --- a/public/sha1-hashes +++ b/public/sha1-hashes @@ -32,7 +32,7 @@ compute SHA1 hashes in Go.

- +
package main
 
diff --git a/public/signals b/public/signals index 56cc886..f38a239 100644 --- a/public/signals +++ b/public/signals @@ -32,7 +32,7 @@ Here’s how to handle signals in Go with channels.

- +
package main
 
diff --git a/public/slices b/public/slices index 5284efc..18acb11 100644 --- a/public/slices +++ b/public/slices @@ -28,7 +28,7 @@ powerful interface to sequences than arrays.

- +
package main
 
diff --git a/public/sorting b/public/sorting index 95e13d8..eacc67d 100644 --- a/public/sorting +++ b/public/sorting @@ -29,7 +29,7 @@ builtins first.

- +
package main
 
diff --git a/public/sorting-by-functions b/public/sorting-by-functions index 711c5c1..ca48e6f 100644 --- a/public/sorting-by-functions +++ b/public/sorting-by-functions @@ -31,7 +31,7 @@ in Go.

- +
package main
 
diff --git a/public/spawning-processes b/public/spawning-processes index 88c0c28..eecc288 100644 --- a/public/spawning-processes +++ b/public/spawning-processes @@ -32,7 +32,7 @@ of spawning processes from Go.

- +
package main
 
diff --git a/public/stateful-goroutines b/public/stateful-goroutines index ea7d4a1..17add47 100644 --- a/public/stateful-goroutines +++ b/public/stateful-goroutines @@ -34,7 +34,7 @@ by exactly 1 goroutine.

- +
package main
 
diff --git a/public/string-formatting b/public/string-formatting index 9126fcf..202ca19 100644 --- a/public/string-formatting +++ b/public/string-formatting @@ -29,7 +29,7 @@ common string formatting tasks.

- +
package main
 
diff --git a/public/string-functions b/public/string-functions index 440fe49..bcf2866 100644 --- a/public/string-functions +++ b/public/string-functions @@ -29,7 +29,7 @@ to give you a sense of the package.

- +
package main
 
diff --git a/public/structs b/public/structs index f3be51a..f42c329 100644 --- a/public/structs +++ b/public/structs @@ -29,7 +29,7 @@ records.

- +
package main
 
diff --git a/public/switch b/public/switch index c13f0fd..37200b3 100644 --- a/public/switch +++ b/public/switch @@ -28,7 +28,7 @@ branches.

- +
package main
 
diff --git a/public/tickers b/public/tickers index 0c38797..0ea1840 100644 --- a/public/tickers +++ b/public/tickers @@ -31,7 +31,7 @@ periodically until we stop it.

- +
package main
 
diff --git a/public/time b/public/time index 272d320..cfd8b5c 100644 --- a/public/time +++ b/public/time @@ -28,7 +28,7 @@ here are some examples.

- +
package main
 
diff --git a/public/time-formatting-parsing b/public/time-formatting-parsing index 16f4105..6e79f33 100644 --- a/public/time-formatting-parsing +++ b/public/time-formatting-parsing @@ -28,7 +28,7 @@ pattern-based layouts.

- +
package main
 
diff --git a/public/timeouts b/public/timeouts index 6033b7a..aa20120 100644 --- a/public/timeouts +++ b/public/timeouts @@ -30,7 +30,7 @@ elegant thanks to channels and select.

- +
package main
 
diff --git a/public/timers b/public/timers index 220d7f4..7a11306 100644 --- a/public/timers +++ b/public/timers @@ -31,7 +31,7 @@ at tickers.

- +
package main
 
diff --git a/public/url-parsing b/public/url-parsing index d3e0e77..efe547c 100644 --- a/public/url-parsing +++ b/public/url-parsing @@ -28,7 +28,7 @@ Here’s how to parse URLs in Go.

- +
package main
 
diff --git a/public/values b/public/values index 1a052d0..057fa53 100644 --- a/public/values +++ b/public/values @@ -29,7 +29,7 @@ basic examples.

- +
package main
 
diff --git a/public/variables b/public/variables index 95db760..a02f89a 100644 --- a/public/variables +++ b/public/variables @@ -29,7 +29,7 @@ calls.

- +
package main
 
diff --git a/public/variadic-functions b/public/variadic-functions index e660ef3..b789f72 100644 --- a/public/variadic-functions +++ b/public/variadic-functions @@ -30,7 +30,7 @@ function.

- +
package main
 
diff --git a/public/waitgroups b/public/waitgroups index 1fe8966..d2d6b2e 100644 --- a/public/waitgroups +++ b/public/waitgroups @@ -28,7 +28,7 @@ use a wait group.

- +
package main
 
diff --git a/public/worker-pools b/public/worker-pools index ac6909a..5d14690 100644 --- a/public/worker-pools +++ b/public/worker-pools @@ -28,7 +28,7 @@ a worker pool using goroutines and channels.

- +
package main
 
diff --git a/public/writing-files b/public/writing-files index 66d254e..4280238 100644 --- a/public/writing-files +++ b/public/writing-files @@ -28,7 +28,7 @@ ones we saw earlier for reading.

- +
package main
 
diff --git a/templates/example.tmpl b/templates/example.tmpl index 8eb58b5..b31f742 100644 --- a/templates/example.tmpl +++ b/templates/example.tmpl @@ -16,7 +16,7 @@ {{.DocsRendered}} - {{if .CodeRun}}{{end}} + {{if .CodeRun}}{{end}} {{.CodeRendered}}