From 86216051fc1b82aa432ee4c6a699653cefa38e61 Mon Sep 17 00:00:00 2001
From: Anthony Buchholz fmt.Println
.
- Next example: Slices. + Next example: Slices.
diff --git a/public/atomic-counters b/public/atomic-counters index efd77ba6d..4cfe179f2 100644 --- a/public/atomic-counters +++ b/public/atomic-counters @@ -213,7 +213,7 @@ state.- Next example: Mutexes. + Next example: Mutexes.
diff --git a/public/base64-encoding b/public/base64-encoding index 1087feb63..b0cbd8236 100644 --- a/public/base64-encoding +++ b/public/base64-encoding @@ -167,7 +167,7 @@ but they both decode to the original string as desired.- Next example: Reading Files. + Next example: Reading Files.
diff --git a/public/channel-buffering b/public/channel-buffering index b2a29327c..f57e1bb26 100644 --- a/public/channel-buffering +++ b/public/channel-buffering @@ -133,7 +133,7 @@ concurrent receive.- Next example: Channel Synchronization. + Next example: Channel Synchronization.
diff --git a/public/channel-directions b/public/channel-directions index be0ff1ee1..631f50cfe 100644 --- a/public/channel-directions +++ b/public/channel-directions @@ -127,7 +127,7 @@ receive on this channel.- Next example: Select. + Next example: Select.
diff --git a/public/channel-synchronization b/public/channel-synchronization index 989ce71b8..367d58f7e 100644 --- a/public/channel-synchronization +++ b/public/channel-synchronization @@ -162,7 +162,7 @@ started.- Next example: Channel Directions. + Next example: Channel Directions.
diff --git a/public/channels b/public/channels index ebe9c90a7..408561d2d 100644 --- a/public/channels +++ b/public/channels @@ -148,7 +148,7 @@ message without having to use any other synchronization.- Next example: Channel Buffering. + Next example: Channel Buffering.
diff --git a/public/closing-channels b/public/closing-channels index ca4b3c23f..352fbbeaf 100644 --- a/public/closing-channels +++ b/public/closing-channels @@ -193,7 +193,7 @@ example:range
over channels.
- Next example: Range over Channels. + Next example: Range over Channels.
diff --git a/public/closures b/public/closures index e6ebd9c00..4893fbd33 100644 --- a/public/closures +++ b/public/closures @@ -168,7 +168,7 @@ recursion.- Next example: Recursion. + Next example: Recursion.
diff --git a/public/command-line-arguments b/public/command-line-arguments index 0a695f549..a2cbcd859 100644 --- a/public/command-line-arguments +++ b/public/command-line-arguments @@ -150,7 +150,7 @@ with flags.- Next example: Command-Line Flags. + Next example: Command-Line Flags.
diff --git a/public/command-line-flags b/public/command-line-flags index 82ef2c452..ab12461e5 100644 --- a/public/command-line-flags +++ b/public/command-line-flags @@ -274,7 +274,7 @@ and show the help text again.- Next example: Command-Line Subcommands. + Next example: Command-Line Subcommands.
diff --git a/public/command-line-subcommands b/public/command-line-subcommands index 39a52ff44..36a4743ba 100644 --- a/public/command-line-subcommands +++ b/public/command-line-subcommands @@ -233,7 +233,7 @@ way to parameterize programs.- Next example: Environment Variables. + Next example: Environment Variables.
diff --git a/public/constants b/public/constants index 124457d26..2a48ee078 100644 --- a/public/constants +++ b/public/constants @@ -159,7 +159,7 @@ assignment or function call. For example, here- Next example: For. + Next example: For.
diff --git a/public/context b/public/context index a6bec16df..134804efd 100644 --- a/public/context +++ b/public/context @@ -179,7 +179,7 @@ cancellation.- Next example: Spawning Processes. + Next example: Spawning Processes.
diff --git a/public/custom-errors b/public/custom-errors index 48e62612b..a86e48c33 100644 --- a/public/custom-errors +++ b/public/custom-errors @@ -171,7 +171,7 @@ returnsfalse
.
- Next example: Goroutines. + Next example: Goroutines.
diff --git a/public/defer b/public/defer index ae77a77ee..51a08a7a7 100644 --- a/public/defer +++ b/public/defer @@ -186,7 +186,7 @@ after being written.- Next example: Recover. + Next example: Recover.
diff --git a/public/directories b/public/directories index 87ad888e5..c291d3e16 100644 --- a/public/directories +++ b/public/directories @@ -309,7 +309,7 @@ recursively byfilepath.WalkDir
.
- Next example: Temporary Files and Directories. + Next example: Temporary Files and Directories.
diff --git a/public/embed-directive b/public/embed-directive index be868b136..fcf619532 100644 --- a/public/embed-directive +++ b/public/embed-directive @@ -182,7 +182,7 @@ this example can only be run on your local machine.)- Next example: Testing and Benchmarking. + Next example: Testing and Benchmarking.
diff --git a/public/enums b/public/enums index 7eeee1a2e..47d30afd6 100644 --- a/public/enums +++ b/public/enums @@ -212,7 +212,7 @@ determine the next state…- Next example: Struct Embedding. + Next example: Struct Embedding.
diff --git a/public/environment-variables b/public/environment-variables index 713676129..94a2eaaef 100644 --- a/public/environment-variables +++ b/public/environment-variables @@ -165,7 +165,7 @@ program picks that value up.- Next example: Logging. + Next example: Logging.
diff --git a/public/epoch b/public/epoch index 2f6c32f48..105d5d249 100644 --- a/public/epoch +++ b/public/epoch @@ -151,7 +151,7 @@ parsing and formatting.- Next example: Time Formatting / Parsing. + Next example: Time Formatting / Parsing.
diff --git a/public/errors b/public/errors index 5830d24be..6cd153ba6 100644 --- a/public/errors +++ b/public/errors @@ -255,7 +255,7 @@ errors in a chain of errors.- Next example: Custom Errors. + Next example: Custom Errors.
diff --git a/public/execing-processes b/public/execing-processes index d5becd917..fe3a962cc 100644 --- a/public/execing-processes +++ b/public/execing-processes @@ -181,7 +181,7 @@ processes covers most use cases forfork
.
- Next example: Signals. + Next example: Signals.
diff --git a/public/file-paths b/public/file-paths index e3f1dd003..eb7ac6883 100644 --- a/public/file-paths +++ b/public/file-paths @@ -218,7 +218,7 @@ be made relative to base.- Next example: Directories. + Next example: Directories.
diff --git a/public/for b/public/for index edb2e3e55..59804363a 100644 --- a/public/for +++ b/public/for @@ -190,7 +190,7 @@ structures.- Next example: If/Else. + Next example: If/Else.
diff --git a/public/functions b/public/functions index 7823b6dda..e61950cd1 100644 --- a/public/functions +++ b/public/functions @@ -169,7 +169,7 @@ multiple return values, which we’ll look at next.- Next example: Multiple Return Values. + Next example: Multiple Return Values.
diff --git a/public/generics b/public/generics index a0d8bb294..016205fff 100644 --- a/public/generics +++ b/public/generics @@ -225,7 +225,7 @@ automatically.- Next example: Range over Iterators. + Next example: Range over Iterators.
diff --git a/public/goroutines b/public/goroutines index ec9e9de82..6bdc52634 100644 --- a/public/goroutines +++ b/public/goroutines @@ -184,7 +184,7 @@ concurrent Go programs: channels.- Next example: Channels. + Next example: Channels.
diff --git a/public/hello-world b/public/hello-world index 9418998e4..6cfec0b6a 100644 --- a/public/hello-world +++ b/public/hello-world @@ -117,7 +117,7 @@ learn more about the language.- Next example: Values. + Next example: Values.
diff --git a/public/http-client b/public/http-client index 9c64c2767..4e6aa6ea8 100644 --- a/public/http-client +++ b/public/http-client @@ -147,7 +147,7 @@ settings.- Next example: HTTP Server. + Next example: HTTP Server.
diff --git a/public/http-server b/public/http-server index 4b6124c38..d747c0dd2 100644 --- a/public/http-server +++ b/public/http-server @@ -182,7 +182,7 @@ router we’ve just set up.- Next example: Context. + Next example: Context.
diff --git a/public/if-else b/public/if-else index 706213f11..7d6d520ba 100644 --- a/public/if-else +++ b/public/if-else @@ -179,7 +179,7 @@ for basic conditions.- Next example: Switch. + Next example: Switch.
diff --git a/public/interfaces b/public/interfaces index cd8daed03..2db5cc383 100644 --- a/public/interfaces +++ b/public/interfaces @@ -239,7 +239,7 @@ check out this blog post. - Next example: Enums. + Next example: Enums. diff --git a/public/json b/public/json index b7f885547..f8e417b40 100644 --- a/public/json +++ b/public/json @@ -385,7 +385,7 @@ for more.- Next example: XML. + Next example: XML.
diff --git a/public/line-filters b/public/line-filters index 2d6948ff0..b1e33790f 100644 --- a/public/line-filters +++ b/public/line-filters @@ -178,7 +178,7 @@ lowercase lines.- Next example: File Paths. + Next example: File Paths.
diff --git a/public/logging b/public/logging index 0160af896..b06df458c 100644 --- a/public/logging +++ b/public/logging @@ -261,7 +261,7 @@ on a single line.- Next example: HTTP Client. + Next example: HTTP Client.
diff --git a/public/maps b/public/maps index b8b899ad7..c6c5b5450 100644 --- a/public/maps +++ b/public/maps @@ -250,7 +250,7 @@ printed withfmt.Println
.
- Next example: Functions. + Next example: Functions.
diff --git a/public/methods b/public/methods index 2f17c79ff..30a086207 100644 --- a/public/methods +++ b/public/methods @@ -173,7 +173,7 @@ naming related sets of methods: interfaces.- Next example: Interfaces. + Next example: Interfaces.
diff --git a/public/multiple-return-values b/public/multiple-return-values index 4a7825d36..1fdfae34a 100644 --- a/public/multiple-return-values +++ b/public/multiple-return-values @@ -146,7 +146,7 @@ feature of Go functions; we’ll look at this next.- Next example: Variadic Functions. + Next example: Variadic Functions.
diff --git a/public/mutexes b/public/mutexes index 79c68e819..9e76e592b 100644 --- a/public/mutexes +++ b/public/mutexes @@ -223,7 +223,7 @@ management task using only goroutines and channels.- Next example: Stateful Goroutines. + Next example: Stateful Goroutines.
diff --git a/public/non-blocking-channel-operations b/public/non-blocking-channel-operations index c71d35511..971f1cd3c 100644 --- a/public/non-blocking-channel-operations +++ b/public/non-blocking-channel-operations @@ -156,7 +156,7 @@ on bothmessages
and signals
.
- Next example: Closing Channels. + Next example: Closing Channels.
diff --git a/public/number-parsing b/public/number-parsing index 211133c96..67e8caf26 100644 --- a/public/number-parsing +++ b/public/number-parsing @@ -187,7 +187,7 @@ bits.- Next example: URL Parsing. + Next example: URL Parsing.
diff --git a/public/panic b/public/panic index 1a031b5c8..5371d85ba 100644 --- a/public/panic +++ b/public/panic @@ -166,7 +166,7 @@ to use error-indicating return values wherever possible.- Next example: Defer. + Next example: Defer.
diff --git a/public/pointers b/public/pointers index 3d5276d58..7c661f543 100644 --- a/public/pointers +++ b/public/pointers @@ -169,7 +169,7 @@ the memory address for that variable.- Next example: Strings and Runes. + Next example: Strings and Runes.
diff --git a/public/random-numbers b/public/random-numbers index c976fafef..9029b1cfa 100644 --- a/public/random-numbers +++ b/public/random-numbers @@ -187,7 +187,7 @@ that Go can provide.- Next example: Number Parsing. + Next example: Number Parsing.
diff --git a/public/range-over-built-in-types b/public/range-over-built-in-types index 0d47ff6eb..f05e49368 100644 --- a/public/range-over-built-in-types +++ b/public/range-over-built-in-types @@ -179,7 +179,7 @@ details.- Next example: Pointers. + Next example: Pointers.
diff --git a/public/range-over-channels b/public/range-over-channels index 9892eca32..2bd5973ab 100644 --- a/public/range-over-channels +++ b/public/range-over-channels @@ -136,7 +136,7 @@ values be received.- Next example: Timers. + Next example: Timers.
diff --git a/public/range-over-iterators b/public/range-over-iterators index d8fac9471..0137ee504 100644 --- a/public/range-over-iterators +++ b/public/range-over-iterators @@ -278,7 +278,7 @@ passed to the iterator will returnfalse
.
- Next example: Errors. + Next example: Errors.
diff --git a/public/rate-limiting b/public/rate-limiting index 69be081d0..bc14f14b6 100644 --- a/public/rate-limiting +++ b/public/rate-limiting @@ -231,7 +231,7 @@ then serve the remaining 2 with ~200ms delays each.- Next example: Atomic Counters. + Next example: Atomic Counters.
diff --git a/public/reading-files b/public/reading-files index 42199fe2e..e8372512c 100644 --- a/public/reading-files +++ b/public/reading-files @@ -279,7 +279,7 @@ be scheduled immediately afterOpen
ing with
- Next example: Writing Files. + Next example: Writing Files.
diff --git a/public/recover b/public/recover index fc8a8afa1..3618aa6ab 100644 --- a/public/recover +++ b/public/recover @@ -174,7 +174,7 @@ panic and resumes in the deferred closure.- Next example: String Functions. + Next example: String Functions.
diff --git a/public/recursion b/public/recursion index 887189419..15f2926a9 100644 --- a/public/recursion +++ b/public/recursion @@ -159,7 +159,7 @@ knows which function to call withfib
here.
- Next example: Range over Built-in Types. + Next example: Range over Built-in Types.
diff --git a/public/regular-expressions b/public/regular-expressions index 6bce2e398..0805c2db8 100644 --- a/public/regular-expressions +++ b/public/regular-expressions @@ -301,7 +301,7 @@ theregexp
package docs.
- Next example: JSON.
+ Next example: JSON.
diff --git a/public/select b/public/select
index cdd10e611..a3bf62244 100644
--- a/public/select
+++ b/public/select
@@ -161,7 +161,7 @@ concurrently.
- Next example: Timeouts. + Next example: Timeouts.
diff --git a/public/sha256-hashes b/public/sha256-hashes index 2206d9616..f7a2e8fe1 100644 --- a/public/sha256-hashes +++ b/public/sha256-hashes @@ -176,7 +176,7 @@ you should carefully research- Next example: Base64 Encoding. + Next example: Base64 Encoding.
diff --git a/public/signals b/public/signals index 24a6dd4ee..6c3987456 100644 --- a/public/signals +++ b/public/signals @@ -188,7 +188,7 @@ causing the program to printinterrupt
and then exit.
- Next example: Exit. + Next example: Exit.
diff --git a/public/slices b/public/slices index 36d2868f6..37fcd989f 100644 --- a/public/slices +++ b/public/slices @@ -311,7 +311,7 @@ Go’s other key builtin data structure: maps.- Next example: Maps. + Next example: Maps.
diff --git a/public/sorting b/public/sorting index 1f79771bd..c85fbc725 100644 --- a/public/sorting +++ b/public/sorting @@ -137,7 +137,7 @@ a slice is already in sorted order.- Next example: Sorting by Functions. + Next example: Sorting by Functions.
diff --git a/public/sorting-by-functions b/public/sorting-by-functions index 52255e013..8173d4476 100644 --- a/public/sorting-by-functions +++ b/public/sorting-by-functions @@ -175,7 +175,7 @@ doubt, benchmark!- Next example: Panic. + Next example: Panic.
diff --git a/public/spawning-processes b/public/spawning-processes index 5a0d16c21..331cc1011 100644 --- a/public/spawning-processes +++ b/public/spawning-processes @@ -253,7 +253,7 @@ an error message and non-zero return code.- Next example: Exec'ing Processes. + Next example: Exec'ing Processes.
diff --git a/public/stateful-goroutines b/public/stateful-goroutines index 9a7c87fd0..628d45ad3 100644 --- a/public/stateful-goroutines +++ b/public/stateful-goroutines @@ -282,7 +282,7 @@ program.- Next example: Sorting. + Next example: Sorting.
diff --git a/public/string-formatting b/public/string-formatting index 3648027dc..9e1d8f1de 100644 --- a/public/string-formatting +++ b/public/string-formatting @@ -397,7 +397,7 @@ and returns a string without printing it anywhere.- Next example: Text Templates. + Next example: Text Templates.
diff --git a/public/string-functions b/public/string-functions index 6ad38f824..1b28524b8 100644 --- a/public/string-functions +++ b/public/string-functions @@ -145,7 +145,7 @@ package docs.- Next example: String Formatting. + Next example: String Formatting.
diff --git a/public/strings-and-runes b/public/strings-and-runes index fe99c4239..32fcc8888 100644 --- a/public/strings-and-runes +++ b/public/strings-and-runes @@ -253,7 +253,7 @@ can compare arune
value to a rune literal directly.
- Next example: Structs. + Next example: Structs.
diff --git a/public/struct-embedding b/public/struct-embedding index e2b995e1f..ca3d42bf9 100644 --- a/public/struct-embedding +++ b/public/struct-embedding @@ -218,7 +218,7 @@ we see that acontainer
now implements the
- Next example: Generics. + Next example: Generics.
diff --git a/public/structs b/public/structs index 78cc03f2b..6ea352dab 100644 --- a/public/structs +++ b/public/structs @@ -254,7 +254,7 @@ struct type. This technique is commonly used for- Next example: Methods. + Next example: Methods.
diff --git a/public/switch b/public/switch index 5bce8f1d4..9f4dfed5b 100644 --- a/public/switch +++ b/public/switch @@ -181,7 +181,7 @@ type corresponding to its clause.- Next example: Arrays. + Next example: Arrays.
diff --git a/public/temporary-files-and-directories b/public/temporary-files-and-directories index 532fde0ac..9e22d356d 100644 --- a/public/temporary-files-and-directories +++ b/public/temporary-files-and-directories @@ -211,7 +211,7 @@ prefixing them with our temporary directory.- Next example: Embed Directive. + Next example: Embed Directive.
diff --git a/public/testing-and-benchmarking b/public/testing-and-benchmarking index 3b181243c..87d4b70db 100644 --- a/public/testing-and-benchmarking +++ b/public/testing-and-benchmarking @@ -255,7 +255,7 @@ benchmark function names with a regexp.- Next example: Command-Line Arguments. + Next example: Command-Line Arguments.
diff --git a/public/text-templates b/public/text-templates index a18bc6925..43f715661 100644 --- a/public/text-templates +++ b/public/text-templates @@ -243,7 +243,7 @@ the range block{{.}}
is set to the current item of the iteration.<
- Next example: Regular Expressions. + Next example: Regular Expressions.
diff --git a/public/tickers b/public/tickers index 295c86d71..f02bf8b0f 100644 --- a/public/tickers +++ b/public/tickers @@ -151,7 +151,7 @@ before we stop it.- Next example: Worker Pools. + Next example: Worker Pools.
diff --git a/public/time b/public/time index 9886fbc88..7154f3d9b 100644 --- a/public/time +++ b/public/time @@ -240,7 +240,7 @@ the Unix epoch.- Next example: Epoch. + Next example: Epoch.
diff --git a/public/time-formatting-parsing b/public/time-formatting-parsing index ac5301102..714792c69 100644 --- a/public/time-formatting-parsing +++ b/public/time-formatting-parsing @@ -180,7 +180,7 @@ explaining the parsing problem.- Next example: Random Numbers. + Next example: Random Numbers.
diff --git a/public/timeouts b/public/timeouts index 445f06dcb..e59cc6c63 100644 --- a/public/timeouts +++ b/public/timeouts @@ -161,7 +161,7 @@ out and the second succeeding.- Next example: Non-Blocking Channel Operations. + Next example: Non-Blocking Channel Operations.
diff --git a/public/timers b/public/timers index e1cbb89be..8f264ce9b 100644 --- a/public/timers +++ b/public/timers @@ -162,7 +162,7 @@ a chance to fire.- Next example: Tickers. + Next example: Tickers.
diff --git a/public/url-parsing b/public/url-parsing index aaf7547c0..b1e4343a5 100644 --- a/public/url-parsing +++ b/public/url-parsing @@ -207,7 +207,7 @@ pieces that we extracted.- Next example: SHA256 Hashes. + Next example: SHA256 Hashes.
diff --git a/public/values b/public/values index 65844279a..459cf8ad6 100644 --- a/public/values +++ b/public/values @@ -132,7 +132,7 @@ basic examples.- Next example: Variables. + Next example: Variables.
diff --git a/public/variables b/public/variables index ced1bdd72..8d8afb4b3 100644 --- a/public/variables +++ b/public/variables @@ -160,7 +160,7 @@ This syntax is only available inside functions.- Next example: Constants. + Next example: Constants.
diff --git a/public/variadic-functions b/public/variadic-functions index 52e4f9e0d..e1477e43b 100644 --- a/public/variadic-functions +++ b/public/variadic-functions @@ -164,7 +164,7 @@ to form closures, which we’ll look at next.- Next example: Closures. + Next example: Closures.
diff --git a/public/waitgroups b/public/waitgroups index c6c96d173..97d0ee270 100644 --- a/public/waitgroups +++ b/public/waitgroups @@ -209,7 +209,7 @@ is likely to be different for each invocation.- Next example: Rate Limiting. + Next example: Rate Limiting.
diff --git a/public/worker-pools b/public/worker-pools index c54ac4900..2ba7e1e2d 100644 --- a/public/worker-pools +++ b/public/worker-pools @@ -198,7 +198,7 @@ there are 3 workers operating concurrently.- Next example: WaitGroups. + Next example: WaitGroups.
diff --git a/public/writing-files b/public/writing-files index 515d6860c..7a6000333 100644 --- a/public/writing-files +++ b/public/writing-files @@ -252,7 +252,7 @@ we’ve just seen to thestdin
and stdout
streams.
- Next example: Line Filters. + Next example: Line Filters.
diff --git a/public/xml b/public/xml index f2c32787c..4ed95a6b7 100644 --- a/public/xml +++ b/public/xml @@ -249,7 +249,7 @@ to nest allplant
s under <parent><child>...
- Next example: Time.
+ Next example: Time.
diff --git a/templates/example.tmpl b/templates/example.tmpl
index 1f1716ab4..997cfd1c1 100644
--- a/templates/example.tmpl
+++ b/templates/example.tmpl
@@ -42,7 +42,7 @@
{{end}}
{{if .NextExample}}
- Next example: {{.NextExample.Name}}. + Next example: {{.NextExample.Name}}.
{{end}} {{ template "footer" }}