From 646c8b39da6a59649a2575575f6a7d174ec78422 Mon Sep 17 00:00:00 2001 From: Oleg Butuzov Date: Tue, 22 Oct 2019 14:27:02 +0300 Subject: [PATCH] bugfix (mmcgrana/gobyexample#294) sha1 sum calculator This bugfix implements correct way to calculate source sha1 hash, before it will changed, by propagation of unchanged sources. This commit will also include regenerated static files and *.hash files. --- examples/arrays/arrays.hash | 4 ++-- examples/atomic-counters/atomic-counters.hash | 4 ++-- examples/base64-encoding/base64-encoding.hash | 4 ++-- examples/channel-buffering/channel-buffering.hash | 4 ++-- examples/channel-directions/channel-directions.hash | 4 ++-- .../channel-synchronization/channel-synchronization.hash | 4 ++-- examples/channels/channels.hash | 4 ++-- examples/closing-channels/closing-channels.hash | 4 ++-- examples/closures/closures.hash | 4 ++-- examples/collection-functions/collection-functions.hash | 4 ++-- .../command-line-arguments/command-line-arguments.hash | 4 ++-- examples/command-line-flags/command-line-flags.hash | 4 ++-- .../command-line-subcommands.hash | 4 ++-- examples/constants/constants.hash | 4 ++-- examples/defer/defer.hash | 4 ++-- examples/directories/directories.hash | 4 ++-- examples/environment-variables/environment-variables.hash | 4 ++-- examples/epoch/epoch.hash | 4 ++-- examples/errors/errors.hash | 4 ++-- examples/execing-processes/execing-processes.hash | 4 ++-- examples/exit/exit.hash | 4 ++-- examples/file-paths/file-paths.hash | 4 ++-- examples/for/for.hash | 4 ++-- examples/functions/functions.hash | 4 ++-- examples/goroutines/goroutines.hash | 4 ++-- examples/hello-world/hello-world.hash | 4 ++-- examples/http-clients/http-clients.hash | 4 ++-- examples/http-servers/http-servers.hash | 4 ++-- examples/if-else/if-else.hash | 4 ++-- examples/interfaces/interfaces.hash | 4 ++-- examples/json/json.hash | 4 ++-- examples/line-filters/line-filters.hash | 4 ++-- examples/maps/maps.hash | 4 ++-- examples/methods/methods.hash | 4 ++-- .../multiple-return-values/multiple-return-values.hash | 4 ++-- examples/mutexes/mutexes.hash | 4 ++-- .../non-blocking-channel-operations.hash | 4 ++-- examples/number-parsing/number-parsing.hash | 4 ++-- examples/panic/panic.hash | 4 ++-- examples/pointers/pointers.hash | 4 ++-- examples/random-numbers/random-numbers.hash | 4 ++-- examples/range-over-channels/range-over-channels.hash | 4 ++-- examples/range/range.hash | 4 ++-- examples/rate-limiting/rate-limiting.hash | 4 ++-- examples/reading-files/reading-files.hash | 4 ++-- examples/recursion/recursion.hash | 4 ++-- examples/regular-expressions/regular-expressions.hash | 4 ++-- examples/select/select.hash | 4 ++-- examples/sha1-hashes/sha1-hashes.hash | 4 ++-- examples/signals/signals.hash | 4 ++-- examples/slices/slices.hash | 4 ++-- examples/sorting-by-functions/sorting-by-functions.hash | 4 ++-- examples/sorting/sorting.hash | 4 ++-- examples/spawning-processes/spawning-processes.hash | 4 ++-- examples/stateful-goroutines/stateful-goroutines.hash | 4 ++-- examples/string-formatting/string-formatting.hash | 4 ++-- examples/string-functions/string-functions.hash | 4 ++-- examples/structs/structs.hash | 4 ++-- examples/switch/switch.hash | 4 ++-- .../temporary-files-and-directories.hash | 4 ++-- examples/testing/testing.hash | 4 ++-- examples/tickers/tickers.hash | 4 ++-- .../time-formatting-parsing/time-formatting-parsing.hash | 4 ++-- examples/time/time.hash | 4 ++-- examples/timeouts/timeouts.hash | 4 ++-- examples/timers/timers.hash | 4 ++-- examples/url-parsing/url-parsing.hash | 4 ++-- examples/values/values.hash | 4 ++-- examples/variables/variables.hash | 4 ++-- examples/variadic-functions/variadic-functions.hash | 4 ++-- examples/waitgroups/waitgroups.hash | 4 ++-- examples/worker-pools/worker-pools.hash | 4 ++-- examples/writing-files/writing-files.hash | 4 ++-- examples/xml/xml.hash | 4 ++-- public/arrays | 2 +- public/atomic-counters | 2 +- public/base64-encoding | 2 +- public/channel-buffering | 2 +- public/channel-directions | 2 +- public/channel-synchronization | 2 +- public/channels | 2 +- public/closing-channels | 2 +- public/closures | 2 +- public/collection-functions | 2 +- public/command-line-arguments | 2 +- public/command-line-flags | 2 +- public/command-line-subcommands | 2 +- public/constants | 2 +- public/defer | 2 +- public/directories | 2 +- public/environment-variables | 2 +- public/epoch | 2 +- public/errors | 2 +- public/execing-processes | 2 +- public/exit | 2 +- public/file-paths | 2 +- public/for | 2 +- public/functions | 2 +- public/goroutines | 2 +- public/hello-world | 2 +- public/http-clients | 2 +- public/http-servers | 2 +- public/if-else | 2 +- public/interfaces | 2 +- public/json | 2 +- public/line-filters | 2 +- public/maps | 2 +- public/methods | 2 +- public/multiple-return-values | 2 +- public/mutexes | 2 +- public/non-blocking-channel-operations | 2 +- public/number-parsing | 2 +- public/panic | 2 +- public/pointers | 2 +- public/random-numbers | 2 +- public/range | 2 +- public/range-over-channels | 2 +- public/rate-limiting | 2 +- public/reading-files | 2 +- public/recursion | 2 +- public/regular-expressions | 2 +- public/select | 2 +- public/sha1-hashes | 2 +- public/signals | 2 +- public/slices | 2 +- public/sorting | 2 +- public/sorting-by-functions | 2 +- public/spawning-processes | 2 +- public/stateful-goroutines | 2 +- public/string-formatting | 2 +- public/string-functions | 2 +- public/structs | 2 +- public/switch | 2 +- public/temporary-files-and-directories | 2 +- public/testing | 2 +- public/tickers | 2 +- public/time | 2 +- public/time-formatting-parsing | 2 +- public/timeouts | 2 +- public/timers | 2 +- public/url-parsing | 2 +- public/values | 2 +- public/variables | 2 +- public/variadic-functions | 2 +- public/waitgroups | 2 +- public/worker-pools | 2 +- public/writing-files | 2 +- public/xml | 2 +- tools/generate.go | 8 ++++++-- 149 files changed, 228 insertions(+), 224 deletions(-) diff --git a/examples/arrays/arrays.hash b/examples/arrays/arrays.hash index cae0e0d..c04751e 100644 --- a/examples/arrays/arrays.hash +++ b/examples/arrays/arrays.hash @@ -1,2 +1,2 @@ -305975d13d24223181d13f042b290906d86c1a0e -W7NwfDq8Vdw +e71f2d3763eb2950727faa39b90cf1bc037d85fa +TaahifSGSwU diff --git a/examples/atomic-counters/atomic-counters.hash b/examples/atomic-counters/atomic-counters.hash index 989ed19..f4c10e6 100644 --- a/examples/atomic-counters/atomic-counters.hash +++ b/examples/atomic-counters/atomic-counters.hash @@ -1,2 +1,2 @@ -8ebec0be3b167021c96b8b497d0e8c0a2ea99385 -F2pJfduyQiA +7b491b40d56a77b01d8e2bd08366de081a4e8d99 +j-14agntvEO diff --git a/examples/base64-encoding/base64-encoding.hash b/examples/base64-encoding/base64-encoding.hash index 717ff3f..09e2b2a 100644 --- a/examples/base64-encoding/base64-encoding.hash +++ b/examples/base64-encoding/base64-encoding.hash @@ -1,2 +1,2 @@ -e0148b9b4acb01e849b8f678cba03f549d250c44 -V3oV1bvh94k +cd00d89ad0a31e48d6a2e2adc2e8d65b0f70dc73 +S7ff3UgzNlG diff --git a/examples/channel-buffering/channel-buffering.hash b/examples/channel-buffering/channel-buffering.hash index 6956e03..74e0a9b 100644 --- a/examples/channel-buffering/channel-buffering.hash +++ b/examples/channel-buffering/channel-buffering.hash @@ -1,2 +1,2 @@ -122140f7ad1bc5cff4fcd7a9e7245b87aaca3ec5 -mPoF-Xi-rip +558f4f1140a52e1804636f5720a10de0b37ebddb +3BRCdRnRszb diff --git a/examples/channel-directions/channel-directions.hash b/examples/channel-directions/channel-directions.hash index fb68662..b848781 100644 --- a/examples/channel-directions/channel-directions.hash +++ b/examples/channel-directions/channel-directions.hash @@ -1,2 +1,2 @@ -635cc13dfe33123ac188e01e3002d3aa935d765f -Jnn9_9hC48c +d1b1580f72c3c101ea46480e6c2361f4f96b049a +mjNJDHwUH4R diff --git a/examples/channel-synchronization/channel-synchronization.hash b/examples/channel-synchronization/channel-synchronization.hash index 9dea9a0..4c3c3a4 100644 --- a/examples/channel-synchronization/channel-synchronization.hash +++ b/examples/channel-synchronization/channel-synchronization.hash @@ -1,2 +1,2 @@ -0d5a9de912e2a4a18943e082e2f8107cb75d0ce4 -fe9If6OhYMk +aa83d53fdee417727ec9a7cd90172d34c15a28c2 +Nw-1DzIGk5f diff --git a/examples/channels/channels.hash b/examples/channels/channels.hash index 92301ce..480ea9d 100644 --- a/examples/channels/channels.hash +++ b/examples/channels/channels.hash @@ -1,2 +1,2 @@ -926212c784ab820648906c96f6ab21afbc161526 -bRGMAqinovA +4fa3a8956f7f1ded57e8dc72827329aef8497e18 +MaLY7AiAkHM diff --git a/examples/closing-channels/closing-channels.hash b/examples/closing-channels/closing-channels.hash index 007751f..3e33a07 100644 --- a/examples/closing-channels/closing-channels.hash +++ b/examples/closing-channels/closing-channels.hash @@ -1,2 +1,2 @@ -5205898a520533e46ea24c849848d19ebc2d08a9 -mkz69rVMHs6 +8f26c901e0f14df2ca40329a354c3ac86a5c3a07 +vCvRjcMq7p3 diff --git a/examples/closures/closures.hash b/examples/closures/closures.hash index fa66f0f..df8a22b 100644 --- a/examples/closures/closures.hash +++ b/examples/closures/closures.hash @@ -1,2 +1,2 @@ -e304df67e760dda93ffe434aca58aea4a6c94f19 -zb93qzV6iN3 +6713bdbb6de0d7d484422517dd77316c8b9f0a7a +66Lgw9iIIch diff --git a/examples/collection-functions/collection-functions.hash b/examples/collection-functions/collection-functions.hash index abbd3d5..27465b8 100644 --- a/examples/collection-functions/collection-functions.hash +++ b/examples/collection-functions/collection-functions.hash @@ -1,2 +1,2 @@ -28456737ea996664bdaeb8e1e821d95697d00646 -8hI6oPNEfyh +002b2ee17f1111c7607a7b7742753af1b5a3c8c1 +uKnePZM91WV diff --git a/examples/command-line-arguments/command-line-arguments.hash b/examples/command-line-arguments/command-line-arguments.hash index ad22b59..6587429 100644 --- a/examples/command-line-arguments/command-line-arguments.hash +++ b/examples/command-line-arguments/command-line-arguments.hash @@ -1,2 +1,2 @@ -9c80d495201148bbeb0fd0a5a2ce1735aeb34b60 -myJy_-H8Fo_Q +d60d1c9cb5dbbb748cf3b692334076951cea7d59 +oSxtj7v_v1K diff --git a/examples/command-line-flags/command-line-flags.hash b/examples/command-line-flags/command-line-flags.hash index abee236..f59c45a 100644 --- a/examples/command-line-flags/command-line-flags.hash +++ b/examples/command-line-flags/command-line-flags.hash @@ -1,2 +1,2 @@ -ab08bf890dcd87b807956b5bee441d59efe458e3 -lPaZodnG9TF +e86d2c60cee18fa926ce1eea60bd082837bd950b +fD0SmjD4GdZ diff --git a/examples/command-line-subcommands/command-line-subcommands.hash b/examples/command-line-subcommands/command-line-subcommands.hash index f22bcc8..ae70db7 100644 --- a/examples/command-line-subcommands/command-line-subcommands.hash +++ b/examples/command-line-subcommands/command-line-subcommands.hash @@ -1,2 +1,2 @@ -5a0ec258e4992e9b93b11d48f2f249092ff3db66 -gtgSAg76N4I +eed015f91ba8a8d5a667dfc4dde745e341fded6e +DkvdHKK-XCv diff --git a/examples/constants/constants.hash b/examples/constants/constants.hash index 93d42ca..3f40949 100644 --- a/examples/constants/constants.hash +++ b/examples/constants/constants.hash @@ -1,2 +1,2 @@ -7cc09460e8dc6fffd0ba811679f92a85eb51e927 -gmjHSglwLic +9f776516953ae57a76544444c72802d3fad63da3 +Vw-pXSfo9_b diff --git a/examples/defer/defer.hash b/examples/defer/defer.hash index d45bfd7..de9f4da 100644 --- a/examples/defer/defer.hash +++ b/examples/defer/defer.hash @@ -1,2 +1,2 @@ -4fc23579a9bd5d8512884902394f4dce51eb7d60 -QJJ2R6kv6K5 +f0eb978a0cdbacc5e4d709bccce6cea6b71be39f +5SDVfc_jxbg diff --git a/examples/directories/directories.hash b/examples/directories/directories.hash index cebae56..7dae4aa 100644 --- a/examples/directories/directories.hash +++ b/examples/directories/directories.hash @@ -1,2 +1,2 @@ -83f67db91816b4544072d0a4d099111a21c60723 --7kWq0PmATF +fa3655fa8f4fa28e971cbe853dffb02773afce83 +UaeLMS5VQVR diff --git a/examples/environment-variables/environment-variables.hash b/examples/environment-variables/environment-variables.hash index e12d01d..bf64045 100644 --- a/examples/environment-variables/environment-variables.hash +++ b/examples/environment-variables/environment-variables.hash @@ -1,2 +1,2 @@ -69d6a768ac84c873ae03b2169ac5cc4cfbc601a6 -gSTxKWLOHRb +bee983e7820d64dec5331dc706c08f6135b5c632 +KuD8tDyB4lQ diff --git a/examples/epoch/epoch.hash b/examples/epoch/epoch.hash index d37c230..ad0a471 100644 --- a/examples/epoch/epoch.hash +++ b/examples/epoch/epoch.hash @@ -1,2 +1,2 @@ -184c8f3e94dd28176be81956115ac417e33513a6 -3uYNHHRplmQ +3b1fc502f41a978f1c8150335801aa9096db8954 +0ooeler0RfR diff --git a/examples/errors/errors.hash b/examples/errors/errors.hash index b650d25..a1f74a5 100644 --- a/examples/errors/errors.hash +++ b/examples/errors/errors.hash @@ -1,2 +1,2 @@ -ed58ad3162d93c723d3efe72529a61ce7041fe13 -vrwN32gxaYx +00affa44cc98f14c2b10934a4187c9445fac0fe6 +NiJOpCPO3L0 diff --git a/examples/execing-processes/execing-processes.hash b/examples/execing-processes/execing-processes.hash index 020f78e..90da7c4 100644 --- a/examples/execing-processes/execing-processes.hash +++ b/examples/execing-processes/execing-processes.hash @@ -1,2 +1,2 @@ -e6b4830d4264f307506b54726ec79b25a0363874 -ahZjpJaZz44 +7a8185c4b55c20a678f1e51698f0f4b6e25d4536 +T3da5euHejy diff --git a/examples/exit/exit.hash b/examples/exit/exit.hash index 234717b..6be0f63 100644 --- a/examples/exit/exit.hash +++ b/examples/exit/exit.hash @@ -1,2 +1,2 @@ -2316e6c8e364e2066c6bd350dc9b0b2af85b63fe -OX997ykuOGx +16f2c50f58d9d113f2cdd5367ddd95a220d89b19 +b9aYzlENkb__R diff --git a/examples/file-paths/file-paths.hash b/examples/file-paths/file-paths.hash index f1610a1..872cc7b 100644 --- a/examples/file-paths/file-paths.hash +++ b/examples/file-paths/file-paths.hash @@ -1,2 +1,2 @@ -1215302b9e59ee9dee21dcd3c47d5f6c672fb058 -QIitbMNiFRx +10823f6a3f4daea097a91374efa88c4361932488 +5h3lUytvmyO diff --git a/examples/for/for.hash b/examples/for/for.hash index 7852dec..2b9b990 100644 --- a/examples/for/for.hash +++ b/examples/for/for.hash @@ -1,2 +1,2 @@ -33056d6b36f9894fb6359c9cf2ef8725bbdafa19 -lGYfUJwiGfi +50eb0c667de576107da5f814f5780754b724346a +jPI-IwqVC1c diff --git a/examples/functions/functions.hash b/examples/functions/functions.hash index 85d4e8f..c1efad9 100644 --- a/examples/functions/functions.hash +++ b/examples/functions/functions.hash @@ -1,2 +1,2 @@ -ae669923c20e5ebf4a7b4b11b8fdf2972accf9e2 -hzGUvK6iJNm +94ade6d23721234a9612c9f77431106308b84953 +-o49-dQfGbK diff --git a/examples/goroutines/goroutines.hash b/examples/goroutines/goroutines.hash index a83b7b8..63a8b2c 100644 --- a/examples/goroutines/goroutines.hash +++ b/examples/goroutines/goroutines.hash @@ -1,2 +1,2 @@ -3737e7b5129b649d202e75225a1ac732eda116d0 -rovAFf9-n78 +08aa2b9e426724e07ec83162eb6892648ccc7fd5 +I7scqRijEJt diff --git a/examples/hello-world/hello-world.hash b/examples/hello-world/hello-world.hash index df7b0e0..658e074 100644 --- a/examples/hello-world/hello-world.hash +++ b/examples/hello-world/hello-world.hash @@ -1,2 +1,2 @@ -c98395a44701add5bf84e2f3a63e300fc1bc4bfe -mp1ENMU6ZYu +3eb6e21f5f89b9a4bf64f267972a24211f0032e7 +NeviD0awXjt diff --git a/examples/http-clients/http-clients.hash b/examples/http-clients/http-clients.hash index e550dd5..b36a4b2 100644 --- a/examples/http-clients/http-clients.hash +++ b/examples/http-clients/http-clients.hash @@ -1,2 +1,2 @@ -ec8fd69aa19e54a7ea05d2a911f09d3a98f0396c -VxYIifr_UuH +fbc80f8cfcd34e9daa3c52c23f6720f6ef7019dc +kHCcVLoz7nd diff --git a/examples/http-servers/http-servers.hash b/examples/http-servers/http-servers.hash index a491ac1..f4f7581 100644 --- a/examples/http-servers/http-servers.hash +++ b/examples/http-servers/http-servers.hash @@ -1,2 +1,2 @@ -a4e8d30b7a6f3a6abd96b916d81ce5930bad94f9 -lNuS9ysZmxH +7694e4f5c3907e999331bbab9ead9743b6e9c6b7 +s3xMMt9Ytry diff --git a/examples/if-else/if-else.hash b/examples/if-else/if-else.hash index 844700f..8f1ebb5 100644 --- a/examples/if-else/if-else.hash +++ b/examples/if-else/if-else.hash @@ -1,2 +1,2 @@ -89b78f3378e1a574ddfd0260a0404a962852eff8 -p6-WKTqEks4 +ae7f289ac1b2b1f152cd1952b93769209eed8e1d +QlMkcwHvmns diff --git a/examples/interfaces/interfaces.hash b/examples/interfaces/interfaces.hash index b6fa983..b228f68 100644 --- a/examples/interfaces/interfaces.hash +++ b/examples/interfaces/interfaces.hash @@ -1,2 +1,2 @@ -aac1328f5a04568272b82753ff0762b9eacff4fc -hXTlbUAGcvn +d4ea9541521cfee94107ba9331d0dabb1f9f16c1 +XJASG4MxBQr diff --git a/examples/json/json.hash b/examples/json/json.hash index 8c217d6..60f6c01 100644 --- a/examples/json/json.hash +++ b/examples/json/json.hash @@ -1,2 +1,2 @@ -c751bc7223b8bc615f82fe7643ab98ce2b80240f -ROikmz5tRhZ +35295476f817fe575619b6168273a29eddd7f545 +JOQpRGJWAxR diff --git a/examples/line-filters/line-filters.hash b/examples/line-filters/line-filters.hash index d62fbff..81f5db4 100644 --- a/examples/line-filters/line-filters.hash +++ b/examples/line-filters/line-filters.hash @@ -1,2 +1,2 @@ -87f4a67edf741979f8ff6da85947aa177547f9ef -hnaOIaQAjKF +42fd593180c40f71839f05447cc0a70d7cd213d1 +kNcupWRsYPP diff --git a/examples/maps/maps.hash b/examples/maps/maps.hash index 57c1a72..79caf58 100644 --- a/examples/maps/maps.hash +++ b/examples/maps/maps.hash @@ -1,2 +1,2 @@ -3e39d07e3f80ecbac558c6fb8baee2a5f914cf97 -U67R66Oab8r +9e0e4535c99668b460c7175f8ff2edc2ccf58bec +agK2Ro2i-Lu diff --git a/examples/methods/methods.hash b/examples/methods/methods.hash index 00c7c28..b8b20fd 100644 --- a/examples/methods/methods.hash +++ b/examples/methods/methods.hash @@ -1,2 +1,2 @@ -24cfb9ad45e43c2d49163149bc55925a4e1b3c7a -ffMb0txGnYB +8c5af60ad04b3e9baa62a85924f829711abe94d4 +4wmDCAydC1e diff --git a/examples/multiple-return-values/multiple-return-values.hash b/examples/multiple-return-values/multiple-return-values.hash index 73f9fa8..4d4b705 100644 --- a/examples/multiple-return-values/multiple-return-values.hash +++ b/examples/multiple-return-values/multiple-return-values.hash @@ -1,2 +1,2 @@ -5063ce3d3c70c6bd70f4b709de24bb93d0f24e0c -FZoIB5LXQGZ +c6e4f5dd9c55b5d2aaeb7e939c216ec76f042501 +vZdUvLB1WbK diff --git a/examples/mutexes/mutexes.hash b/examples/mutexes/mutexes.hash index aea2025..95b8135 100644 --- a/examples/mutexes/mutexes.hash +++ b/examples/mutexes/mutexes.hash @@ -1,2 +1,2 @@ -ca257d9594a6219d5803193132e999a32dc8c856 -IRewFKz2OPN +7cb6349117087c78ddb71c240e988ec8281c8952 +0WEmOOjoCjp diff --git a/examples/non-blocking-channel-operations/non-blocking-channel-operations.hash b/examples/non-blocking-channel-operations/non-blocking-channel-operations.hash index a9f03de..3537e4e 100644 --- a/examples/non-blocking-channel-operations/non-blocking-channel-operations.hash +++ b/examples/non-blocking-channel-operations/non-blocking-channel-operations.hash @@ -1,2 +1,2 @@ -a6e0a8bb87153c7ed0de4996172f7ad5d89c6814 -n5ttmOsMrrJ +40588abf859a0280d8c71b79732e869eb2da9291 +TFv6-7OVNVq diff --git a/examples/number-parsing/number-parsing.hash b/examples/number-parsing/number-parsing.hash index eeaf3cd..32193a2 100644 --- a/examples/number-parsing/number-parsing.hash +++ b/examples/number-parsing/number-parsing.hash @@ -1,2 +1,2 @@ -0191c7e43706640207c403ba92dd2272d66fc868 -t2q4KnWWTAw +146b42780ac43135d97f094c6d30db364882ea17 +ZAMEid6Fpmu diff --git a/examples/panic/panic.hash b/examples/panic/panic.hash index bd32ff3..8223707 100644 --- a/examples/panic/panic.hash +++ b/examples/panic/panic.hash @@ -1,2 +1,2 @@ -91639bbcfcc6ed088295a9ee6b1c36ab35ae402a -91HXbZZZopt +d1d154be95ba37739e3598a9195b6ae0a427bc80 +9-2vCvRuhmE diff --git a/examples/pointers/pointers.hash b/examples/pointers/pointers.hash index a0c5985..455774f 100644 --- a/examples/pointers/pointers.hash +++ b/examples/pointers/pointers.hash @@ -1,2 +1,2 @@ -85cff3345d2f22b65a5d54eb8f7aa8f508f27887 -fnQkHp4hriG +c727916063ddc3e99199cd24bfbde37ff301c0b4 +oimmXypnAcs diff --git a/examples/random-numbers/random-numbers.hash b/examples/random-numbers/random-numbers.hash index 3ebbc4a..907e93b 100644 --- a/examples/random-numbers/random-numbers.hash +++ b/examples/random-numbers/random-numbers.hash @@ -1,2 +1,2 @@ -9374869a809d28ea784a9e1181b4aa1988018776 -DVHO7SjJZnp +102041ca421268afbd4b4e7687386bb65a8c7965 +PGklfJzErTN diff --git a/examples/range-over-channels/range-over-channels.hash b/examples/range-over-channels/range-over-channels.hash index f0ffe62..b3b135c 100644 --- a/examples/range-over-channels/range-over-channels.hash +++ b/examples/range-over-channels/range-over-channels.hash @@ -1,2 +1,2 @@ -8b5d8a77e84c34771c5b14af014ecef3f88b2a6c -QnARPm-ddFB +1812ab409c07ea4209106ee4c0d2eb597fccd717 +yQMclmwOYs9 diff --git a/examples/range/range.hash b/examples/range/range.hash index 2f8d0da..f6e5a86 100644 --- a/examples/range/range.hash +++ b/examples/range/range.hash @@ -1,2 +1,2 @@ -ebe328a57f3d34708709ca99d3304af1733592d9 -JTY1VAUjfBw +c7d9ae9ed081fb4bbf27ef45242fbb39bbae3d4c +pdZOtv4g-7J diff --git a/examples/rate-limiting/rate-limiting.hash b/examples/rate-limiting/rate-limiting.hash index be48802..813cbef 100644 --- a/examples/rate-limiting/rate-limiting.hash +++ b/examples/rate-limiting/rate-limiting.hash @@ -1,2 +1,2 @@ -357d83df3e48675eb1e135188cb9f07448c1f146 -AJ-MJephNib +c2d4dd4c2121e61395db186e3f15ce8cb3acf643 +20c_m1AtOEI diff --git a/examples/reading-files/reading-files.hash b/examples/reading-files/reading-files.hash index 8cf5bf6..2933d50 100644 --- a/examples/reading-files/reading-files.hash +++ b/examples/reading-files/reading-files.hash @@ -1,2 +1,2 @@ -463a6f2999a023887af6b23c8f79f24978eb8115 -cocJ6kBH_iZ +3420958bafd67fd997481d1ada288566666343c7 +kF0cDC0drsX diff --git a/examples/recursion/recursion.hash b/examples/recursion/recursion.hash index 2ebf561..ac2db78 100644 --- a/examples/recursion/recursion.hash +++ b/examples/recursion/recursion.hash @@ -1,2 +1,2 @@ -5d1ba6b03a50ccae2a0f46865eb72c587e11857c -4yUp5wLVyiG +9bfb2f870007082835a3c0efaac9aa1c3bc2c15c +smWim1q9ofu diff --git a/examples/regular-expressions/regular-expressions.hash b/examples/regular-expressions/regular-expressions.hash index 236706c..a1d5644 100644 --- a/examples/regular-expressions/regular-expressions.hash +++ b/examples/regular-expressions/regular-expressions.hash @@ -1,2 +1,2 @@ -de24265897edf1d3913e3b87f70757284a66ecea -urHlUNDVenk +3db643ab821ee2a5b70e05fbadbde1a7f7ba1591 +944r7pT2YIl diff --git a/examples/select/select.hash b/examples/select/select.hash index ea97b26..e186822 100644 --- a/examples/select/select.hash +++ b/examples/select/select.hash @@ -1,2 +1,2 @@ -6e1125087bc036ebd905452300575f160d683918 -yF-xgN7Xf9P +33fe111b666efb3243c9cbd0ba12b2e795d90fab +FzONhs4-tae diff --git a/examples/sha1-hashes/sha1-hashes.hash b/examples/sha1-hashes/sha1-hashes.hash index 5af2939..6313184 100644 --- a/examples/sha1-hashes/sha1-hashes.hash +++ b/examples/sha1-hashes/sha1-hashes.hash @@ -1,2 +1,2 @@ -4cda643ba233014fe6b30966c37d4d0fcd4edbe8 -oqcrTfY4Ykd +fc2de63b58865a6761749490ee217a94b4e343d1 +XLftf8Gvj4y diff --git a/examples/signals/signals.hash b/examples/signals/signals.hash index 82345ca..205ac69 100644 --- a/examples/signals/signals.hash +++ b/examples/signals/signals.hash @@ -1,2 +1,2 @@ -1e43c6f63f1d57e1a52c89f52d35b68757e9676b -_6oj-T3Gko2 +ccee3fe41771b7cf56d64de38b12588022458154 +YRV64KEXJW1 diff --git a/examples/slices/slices.hash b/examples/slices/slices.hash index 8b501cb..24199a5 100644 --- a/examples/slices/slices.hash +++ b/examples/slices/slices.hash @@ -1,2 +1,2 @@ -c6fa1627841f199dbf901f88580cb97eb92c5530 -Z3_U32sn8RF +02c5330eb3ef32a88ca22a5adbded9bd356f89f3 +iLnoIEIxeQ1 diff --git a/examples/sorting-by-functions/sorting-by-functions.hash b/examples/sorting-by-functions/sorting-by-functions.hash index d62f035..ff61f81 100644 --- a/examples/sorting-by-functions/sorting-by-functions.hash +++ b/examples/sorting-by-functions/sorting-by-functions.hash @@ -1,2 +1,2 @@ -f7d0b7840dd12601fb86946f9dc4c38fb1c0501f -Jtxf94x94Hx +e5a6006366e05ee7785eebac8ba588e4b937a197 +h4g4vaLBtkw diff --git a/examples/sorting/sorting.hash b/examples/sorting/sorting.hash index d72396f..e845bdf 100644 --- a/examples/sorting/sorting.hash +++ b/examples/sorting/sorting.hash @@ -1,2 +1,2 @@ -e11e944d34b21e75ce4f7c91026d4200ce592dc5 -tAWAkRlBJNX +c39a7498686fe1d74f729fd6b21a70bf063abf14 +_gY0tANzJ4l diff --git a/examples/spawning-processes/spawning-processes.hash b/examples/spawning-processes/spawning-processes.hash index bcde707..f36a1cc 100644 --- a/examples/spawning-processes/spawning-processes.hash +++ b/examples/spawning-processes/spawning-processes.hash @@ -1,2 +1,2 @@ -cc68e4290f10209ad2fa8db74fdfaea7fdb44d5c -QS_Nkoe8VLG +64e8937dacf6d81f39a3b66584fb70f46dd2126b +jUpRr-RcUKf diff --git a/examples/stateful-goroutines/stateful-goroutines.hash b/examples/stateful-goroutines/stateful-goroutines.hash index 1f3eb48..a5b475c 100644 --- a/examples/stateful-goroutines/stateful-goroutines.hash +++ b/examples/stateful-goroutines/stateful-goroutines.hash @@ -1,2 +1,2 @@ -956afe7524b492b2e85f8320c70f180c448a764a -saQTLpdIgp2 +9c73569ad2e16252b04fe171618db4c5fd09efb7 +5mf_P9xqBzk diff --git a/examples/string-formatting/string-formatting.hash b/examples/string-formatting/string-formatting.hash index c339d9b..a8cc209 100644 --- a/examples/string-formatting/string-formatting.hash +++ b/examples/string-formatting/string-formatting.hash @@ -1,2 +1,2 @@ -12b245c576b43537c092a5b84995ebca8ce78a57 -vmYSdxfUcRh +99fb572787ffa93dad9c491aec5ce5c7a7516081 +L6BkGeaN_p4 diff --git a/examples/string-functions/string-functions.hash b/examples/string-functions/string-functions.hash index 568c7c6..68fb9a4 100644 --- a/examples/string-functions/string-functions.hash +++ b/examples/string-functions/string-functions.hash @@ -1,2 +1,2 @@ -bf39c7540bd78eba38eb5a9047a9d0ffc7235f85 -xoRUhG86wsF +33b15b8c999ba65564b965b96cbfeadac0d1637d +fZ_FqN5WlSz diff --git a/examples/structs/structs.hash b/examples/structs/structs.hash index 15fcdc0..ca7cc85 100644 --- a/examples/structs/structs.hash +++ b/examples/structs/structs.hash @@ -1,2 +1,2 @@ -c5caaf1eefaf084d688afb70d2ee5884a4983182 -00Yiw6xuICq +e630f9890f89e157aa88f5d774dbed0c0c04224e +qHz9gNnAtyw diff --git a/examples/switch/switch.hash b/examples/switch/switch.hash index 54d2e9f..1bd1eaa 100644 --- a/examples/switch/switch.hash +++ b/examples/switch/switch.hash @@ -1,2 +1,2 @@ -2486fc553301cdeac9a26f3d0b3aed4143d9f4f0 -ZcDzdx3nYQn +28a8909ee7963cb315f14a3be1607def1d91f3a3 +qVDqWoUQ6AI diff --git a/examples/temporary-files-and-directories/temporary-files-and-directories.hash b/examples/temporary-files-and-directories/temporary-files-and-directories.hash index f523002..ebe1eeb 100644 --- a/examples/temporary-files-and-directories/temporary-files-and-directories.hash +++ b/examples/temporary-files-and-directories/temporary-files-and-directories.hash @@ -1,2 +1,2 @@ -5f7d0c43988d7dce235adb06ec02f4d2026b7f83 -pxE20wGTFjv +371689e72c46daa43eefbd9b9f4eaa3c490e7fd2 +yKWE4QTsYQr diff --git a/examples/testing/testing.hash b/examples/testing/testing.hash index 317487f..e3a2516 100644 --- a/examples/testing/testing.hash +++ b/examples/testing/testing.hash @@ -1,2 +1,2 @@ -8f00c5178a33be2e92a853f14bfc3fbf0919cd97 -fyy7h1adGWr +017c9d7ba927cdfbcef1643e86f9b8022f13fc31 +jCRgtgRwie3 diff --git a/examples/tickers/tickers.hash b/examples/tickers/tickers.hash index cd2eaf3..86e4cdd 100644 --- a/examples/tickers/tickers.hash +++ b/examples/tickers/tickers.hash @@ -1,2 +1,2 @@ -05a1e62b5d363b67df0f9bac5c8f75dc19ca2c54 -E1ro_QHJD9L +432b3be0884cead3f01b9cce0868ac6146e7864e +gs6zoJP-Pl9 diff --git a/examples/time-formatting-parsing/time-formatting-parsing.hash b/examples/time-formatting-parsing/time-formatting-parsing.hash index eee6d65..fffa49e 100644 --- a/examples/time-formatting-parsing/time-formatting-parsing.hash +++ b/examples/time-formatting-parsing/time-formatting-parsing.hash @@ -1,2 +1,2 @@ -9e3f17061fef280191e3e8518365e231e17a5d5a -1410R7Fcyx0 +9136a09d33b7a812de3ba0129b9aa6953bca0fbe +BoZYtr_2j66 diff --git a/examples/time/time.hash b/examples/time/time.hash index 2c9d415..2364137 100644 --- a/examples/time/time.hash +++ b/examples/time/time.hash @@ -1,2 +1,2 @@ -c47d853fa7527a652ce78b0285e452c6cd740050 -u-7i_p8BHVt +24eefcc82ee0c70a4678a4952fe2b8c558c7419c +YAM3s1KPc8c diff --git a/examples/timeouts/timeouts.hash b/examples/timeouts/timeouts.hash index f622aeb..8fbb39d 100644 --- a/examples/timeouts/timeouts.hash +++ b/examples/timeouts/timeouts.hash @@ -1,2 +1,2 @@ -b8d3e745539b24d3530ca21efcdc924f08769edb -TYJgoFjlTd6 +fb913ae361c41095a39bb3fa0c5e9dcd54ec840e +4oOz0j29MJ6 diff --git a/examples/timers/timers.hash b/examples/timers/timers.hash index 8c0f2c4..aa71908 100644 --- a/examples/timers/timers.hash +++ b/examples/timers/timers.hash @@ -1,2 +1,2 @@ -e8e501d6083bea786629ca5e485e8b18caab4815 -pLnKEIesooU +fb413c9b1152a30107c53bf0a739a22c0056976b +_cLT2ewHYO8 diff --git a/examples/url-parsing/url-parsing.hash b/examples/url-parsing/url-parsing.hash index 77021f1..8468d1f 100644 --- a/examples/url-parsing/url-parsing.hash +++ b/examples/url-parsing/url-parsing.hash @@ -1,2 +1,2 @@ -babc12f5066652f4cb0151231c06f1037298ff28 -M218D9Tldlr +7e77917c98bd88187b4fed2b8c988afdd0b0df7d +fHTQn9X7l1B diff --git a/examples/values/values.hash b/examples/values/values.hash index b10176b..4c64e23 100644 --- a/examples/values/values.hash +++ b/examples/values/values.hash @@ -1,2 +1,2 @@ -c5a53c75cc57dc15ac4458285c9b139bf85c67bf -aGiVohrYqYC +476982956a689418d548148af5f17145de16f063 +YnVS3LZr8pk diff --git a/examples/variables/variables.hash b/examples/variables/variables.hash index 316281a..040888b 100644 --- a/examples/variables/variables.hash +++ b/examples/variables/variables.hash @@ -1,2 +1,2 @@ -636a63e1bf810cb9d0620cc5160330f6d3d8679d -kwm2xuWnlKq +736ce4018f275bb8d12e5232349bae93611506b2 +iYyAIilyBRf diff --git a/examples/variadic-functions/variadic-functions.hash b/examples/variadic-functions/variadic-functions.hash index 3c44a2b..850311a 100644 --- a/examples/variadic-functions/variadic-functions.hash +++ b/examples/variadic-functions/variadic-functions.hash @@ -1,2 +1,2 @@ -34ba16069a5d972a837cc5c0172ab30873535220 -7f0JlVhToDD +560aaef6ce8867710f3ef609b1bb2317377a71bf +Ua6kZOMabBp diff --git a/examples/waitgroups/waitgroups.hash b/examples/waitgroups/waitgroups.hash index 71ecfc8..f944ca9 100644 --- a/examples/waitgroups/waitgroups.hash +++ b/examples/waitgroups/waitgroups.hash @@ -1,2 +1,2 @@ -499c7ee59b2ae06d2d3171768d9cf11762121a87 -gLLmgcR7YkP +39bbc00ecd87888761d480666e95d8b2c2a2a589 +oBOGrV0n2Y2 diff --git a/examples/worker-pools/worker-pools.hash b/examples/worker-pools/worker-pools.hash index dbfeb88..97b94fd 100644 --- a/examples/worker-pools/worker-pools.hash +++ b/examples/worker-pools/worker-pools.hash @@ -1,2 +1,2 @@ -9b30cdfc3f46d634c3b8671a7ae1551c133fb6e2 -IiKZ-nj-nKY +dbe5adf9aad6828387231e477e22c5f0cd550b74 +WXYS5_KpNvq diff --git a/examples/writing-files/writing-files.hash b/examples/writing-files/writing-files.hash index 360897a..3d09d10 100644 --- a/examples/writing-files/writing-files.hash +++ b/examples/writing-files/writing-files.hash @@ -1,2 +1,2 @@ -0853ca57176872e9b34b501855ceb8bf5fbdbf46 -gyJn9PcndtP +d4f19bc0168674b17551bbf55bab7af989452d0e +8kx-qYUXBpA diff --git a/examples/xml/xml.hash b/examples/xml/xml.hash index 104125d..aef8f35 100644 --- a/examples/xml/xml.hash +++ b/examples/xml/xml.hash @@ -1,2 +1,2 @@ -18ada773098bca38778a58b438d6af70529f18b0 -qd9Ii_3AW0s +f42dec8593a45931145f0a55f104f2ca34b2d112 +wlkywJsuWqL diff --git a/public/arrays b/public/arrays index d8273e0..352a010 100644 --- a/public/arrays +++ b/public/arrays @@ -42,7 +42,7 @@ specific length.

- +
package main
 
diff --git a/public/atomic-counters b/public/atomic-counters index 9627c97..2d52529 100644 --- a/public/atomic-counters +++ b/public/atomic-counters @@ -46,7 +46,7 @@ counters accessed by multiple goroutines.

- +
package main
 
diff --git a/public/base64-encoding b/public/base64-encoding index 7bf8d28..13baf61 100644 --- a/public/base64-encoding +++ b/public/base64-encoding @@ -42,7 +42,7 @@ encoding/decoding.

- +
package main
 
diff --git a/public/channel-buffering b/public/channel-buffering index eab9a6e..5f2d1f5 100644 --- a/public/channel-buffering +++ b/public/channel-buffering @@ -46,7 +46,7 @@ those values.

- +
package main
 
diff --git a/public/channel-directions b/public/channel-directions index fbbe7b5..f79750a 100644 --- a/public/channel-directions +++ b/public/channel-directions @@ -44,7 +44,7 @@ the program.

- +
package main
 
diff --git a/public/channel-synchronization b/public/channel-synchronization index 7a0d3a3..71fec12 100644 --- a/public/channel-synchronization +++ b/public/channel-synchronization @@ -45,7 +45,7 @@ you may prefer to use a WaitGroup.

- +
package main
 
diff --git a/public/channels b/public/channels index 704c9f4..6ae7ade 100644 --- a/public/channels +++ b/public/channels @@ -44,7 +44,7 @@ goroutine.

- +
package main
 
diff --git a/public/closing-channels b/public/closing-channels index 8566518..5271faa 100644 --- a/public/closing-channels +++ b/public/closing-channels @@ -43,7 +43,7 @@ completion to the channel’s receivers.

- +
package main
 
diff --git a/public/closures b/public/closures index 36d6dc4..e31c87a 100644 --- a/public/closures +++ b/public/closures @@ -44,7 +44,7 @@ a function inline without having to name it.

- +
package main
 
diff --git a/public/collection-functions b/public/collection-functions index 569c4b3..33c38fd 100644 --- a/public/collection-functions +++ b/public/collection-functions @@ -75,7 +75,7 @@ helper function.

- +
package main
 
diff --git a/public/command-line-arguments b/public/command-line-arguments index 593e93f..687aefd 100644 --- a/public/command-line-arguments +++ b/public/command-line-arguments @@ -44,7 +44,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 76e2bfc..024349f 100644 --- a/public/command-line-flags +++ b/public/command-line-flags @@ -44,7 +44,7 @@ command-line flag.

- +
package main
 
diff --git a/public/command-line-subcommands b/public/command-line-subcommands index f5add93..6bee74c 100644 --- a/public/command-line-subcommands +++ b/public/command-line-subcommands @@ -46,7 +46,7 @@ subcommands that have their own flags.

- +
package main
 
diff --git a/public/constants b/public/constants index 31e2c7b..b1cf880 100644 --- a/public/constants +++ b/public/constants @@ -42,7 +42,7 @@ and numeric values.

- +
package main
 
diff --git a/public/defer b/public/defer index f99d59d..54bb2d7 100644 --- a/public/defer +++ b/public/defer @@ -44,7 +44,7 @@ purposes of cleanup. defer is often used where e.g. - +
package main
 
diff --git a/public/directories b/public/directories index 5cfc5b0..c88a76c 100644 --- a/public/directories +++ b/public/directories @@ -42,7 +42,7 @@ - +
package main
 
diff --git a/public/environment-variables b/public/environment-variables index ecaef7e..e68934d 100644 --- a/public/environment-variables +++ b/public/environment-variables @@ -44,7 +44,7 @@ Let’s look at how to set, get, and list environment variables.

- +
package main
 
diff --git a/public/epoch b/public/epoch index 76a9b20..02bfc7e 100644 --- a/public/epoch +++ b/public/epoch @@ -44,7 +44,7 @@ Here’s how to do it in Go.

- +
package main
 
diff --git a/public/errors b/public/errors index 351cb86..3103a2e 100644 --- a/public/errors +++ b/public/errors @@ -48,7 +48,7 @@ non-error tasks.

- +
package main
 
diff --git a/public/execing-processes b/public/execing-processes index 98ce62a..585a266 100644 --- a/public/execing-processes +++ b/public/execing-processes @@ -49,7 +49,7 @@ function.

- +
package main
 
diff --git a/public/exit b/public/exit index 5929eb6..179e161 100644 --- a/public/exit +++ b/public/exit @@ -38,7 +38,7 @@ status.

- +
package main
 
diff --git a/public/file-paths b/public/file-paths index 2351954..3219a93 100644 --- a/public/file-paths +++ b/public/file-paths @@ -34,7 +34,7 @@ between operating systems; dir/file on Linux vs. - +
package main
 
diff --git a/public/for b/public/for index 81b98d9..fea862c 100644 --- a/public/for +++ b/public/for @@ -42,7 +42,7 @@ three basic types of for loops.

- +
package main
 
diff --git a/public/functions b/public/functions index 8880847..b4b80b3 100644 --- a/public/functions +++ b/public/functions @@ -42,7 +42,7 @@ functions with a few different examples.

- +
package main
 
diff --git a/public/goroutines b/public/goroutines index 6b87012..105d9bd 100644 --- a/public/goroutines +++ b/public/goroutines @@ -41,7 +41,7 @@ - +
package main
 
diff --git a/public/hello-world b/public/hello-world index 4c2373a..4b7c360 100644 --- a/public/hello-world +++ b/public/hello-world @@ -28,7 +28,7 @@ message. Here’s the full source code.

- +
package main
 
diff --git a/public/http-clients b/public/http-clients index 7bdaa06..09080b5 100644 --- a/public/http-clients +++ b/public/http-clients @@ -34,7 +34,7 @@ HTTP requests.

- +
package main
 
diff --git a/public/http-servers b/public/http-servers index aa2802d..f3f9638 100644 --- a/public/http-servers +++ b/public/http-servers @@ -32,7 +32,7 @@ - +
package main
 
diff --git a/public/if-else b/public/if-else index f00d6b5..ed87d6a 100644 --- a/public/if-else +++ b/public/if-else @@ -42,7 +42,7 @@ straight-forward.

- +
package main
 
diff --git a/public/interfaces b/public/interfaces index fad0ed0..737c518 100644 --- a/public/interfaces +++ b/public/interfaces @@ -42,7 +42,7 @@ signatures.

- +
package main
 
diff --git a/public/json b/public/json index e2327ec..4a648d1 100644 --- a/public/json +++ b/public/json @@ -43,7 +43,7 @@ data types.

- +
package main
 
diff --git a/public/line-filters b/public/line-filters index f7796d0..ec84915 100644 --- a/public/line-filters +++ b/public/line-filters @@ -47,7 +47,7 @@ pattern to write your own Go line filters.

- +
package main
 
diff --git a/public/maps b/public/maps index 443efd7..f0c7c0f 100644 --- a/public/maps +++ b/public/maps @@ -42,7 +42,7 @@ - +
package main
 
diff --git a/public/methods b/public/methods index ca0589a..a053c85 100644 --- a/public/methods +++ b/public/methods @@ -41,7 +41,7 @@ - +
package main
 
diff --git a/public/multiple-return-values b/public/multiple-return-values index bd16bd1..ec3ebcb 100644 --- a/public/multiple-return-values +++ b/public/multiple-return-values @@ -43,7 +43,7 @@ to return both result and error values from a function.

- +
package main
 
diff --git a/public/mutexes b/public/mutexes index 14d8137..fb406ee 100644 --- a/public/mutexes +++ b/public/mutexes @@ -44,7 +44,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 bbe6d55..6a529c8 100644 --- a/public/non-blocking-channel-operations +++ b/public/non-blocking-channel-operations @@ -44,7 +44,7 @@ non-blocking multi-way selects.

- +
package main
 
diff --git a/public/number-parsing b/public/number-parsing index 269da85..6b063ee 100644 --- a/public/number-parsing +++ b/public/number-parsing @@ -42,7 +42,7 @@ in many programs; here’s how to do it in Go.

- +
package main
 
diff --git a/public/panic b/public/panic index 6a9b834..f078c03 100644 --- a/public/panic +++ b/public/panic @@ -44,7 +44,7 @@ aren’t prepared to handle gracefully.

- +
package main
 
diff --git a/public/pointers b/public/pointers index 4d10527..53d075a 100644 --- a/public/pointers +++ b/public/pointers @@ -43,7 +43,7 @@ within your program.

- +
package main
 
diff --git a/public/random-numbers b/public/random-numbers index d3685c5..7d14d79 100644 --- a/public/random-numbers +++ b/public/random-numbers @@ -43,7 +43,7 @@ generation.

- +
package main
 
diff --git a/public/range b/public/range index f09b0c7..947af86 100644 --- a/public/range +++ b/public/range @@ -43,7 +43,7 @@ of the data structures we’ve already learned.

- +
package main
 
diff --git a/public/range-over-channels b/public/range-over-channels index 1b7354c..cc279fb 100644 --- a/public/range-over-channels +++ b/public/range-over-channels @@ -44,7 +44,7 @@ values received from a channel.

- +
package main
 
diff --git a/public/rate-limiting b/public/rate-limiting index 33dd251..49e16b9 100644 --- a/public/rate-limiting +++ b/public/rate-limiting @@ -45,7 +45,7 @@ channels, and tickers.

- +
package main
 
diff --git a/public/reading-files b/public/reading-files index 5f87bee..62e692c 100644 --- a/public/reading-files +++ b/public/reading-files @@ -43,7 +43,7 @@ reading files.

- +
package main
 
diff --git a/public/recursion b/public/recursion index 215d30d..12b7ffa 100644 --- a/public/recursion +++ b/public/recursion @@ -43,7 +43,7 @@ Here’s a classic factorial example.

- +
package main
 
diff --git a/public/regular-expressions b/public/regular-expressions index 76529e3..20d4fbd 100644 --- a/public/regular-expressions +++ b/public/regular-expressions @@ -43,7 +43,7 @@ in Go.

- +
package main
 
diff --git a/public/select b/public/select index 116ac3b..fc1eda7 100644 --- a/public/select +++ b/public/select @@ -43,7 +43,7 @@ select is a powerful feature of Go.

- +
package main
 
diff --git a/public/sha1-hashes b/public/sha1-hashes index 4db0375..9bbcddf 100644 --- a/public/sha1-hashes +++ b/public/sha1-hashes @@ -46,7 +46,7 @@ compute SHA1 hashes in Go.

- +
package main
 
diff --git a/public/signals b/public/signals index b0109b5..786fb5a 100644 --- a/public/signals +++ b/public/signals @@ -46,7 +46,7 @@ Here’s how to handle signals in Go with channels.

- +
package main
 
diff --git a/public/slices b/public/slices index ee57572..c61dcb7 100644 --- a/public/slices +++ b/public/slices @@ -42,7 +42,7 @@ powerful interface to sequences than arrays.

- +
package main
 
diff --git a/public/sorting b/public/sorting index ded8f48..18f89fb 100644 --- a/public/sorting +++ b/public/sorting @@ -43,7 +43,7 @@ builtins first.

- +
package main
 
diff --git a/public/sorting-by-functions b/public/sorting-by-functions index f86a188..0d2b442 100644 --- a/public/sorting-by-functions +++ b/public/sorting-by-functions @@ -45,7 +45,7 @@ in Go.

- +
package main
 
diff --git a/public/spawning-processes b/public/spawning-processes index da8dfc5..26f6562 100644 --- a/public/spawning-processes +++ b/public/spawning-processes @@ -46,7 +46,7 @@ of spawning processes from Go.

- +
package main
 
diff --git a/public/stateful-goroutines b/public/stateful-goroutines index 80ad0ba..25b8f59 100644 --- a/public/stateful-goroutines +++ b/public/stateful-goroutines @@ -48,7 +48,7 @@ by exactly 1 goroutine.

- +
package main
 
diff --git a/public/string-formatting b/public/string-formatting index 6616ed0..6ec0568 100644 --- a/public/string-formatting +++ b/public/string-formatting @@ -43,7 +43,7 @@ common string formatting tasks.

- +
package main
 
diff --git a/public/string-functions b/public/string-functions index 093c467..3c0ddfa 100644 --- a/public/string-functions +++ b/public/string-functions @@ -43,7 +43,7 @@ to give you a sense of the package.

- +
package main
 
diff --git a/public/structs b/public/structs index 0bb814c..e941fef 100644 --- a/public/structs +++ b/public/structs @@ -43,7 +43,7 @@ records.

- +
package main
 
diff --git a/public/switch b/public/switch index f0eff96..ead4de4 100644 --- a/public/switch +++ b/public/switch @@ -42,7 +42,7 @@ branches.

- +
package main
 
diff --git a/public/temporary-files-and-directories b/public/temporary-files-and-directories index 93bd965..3919f36 100644 --- a/public/temporary-files-and-directories +++ b/public/temporary-files-and-directories @@ -45,7 +45,7 @@ time.

- +
package main
 
diff --git a/public/testing b/public/testing index dc0c517..e8a3bc2 100644 --- a/public/testing +++ b/public/testing @@ -47,7 +47,7 @@ typically lives in the same package as the code it tests.

- +
package main
 
diff --git a/public/tickers b/public/tickers index 82648e0..6b219ab 100644 --- a/public/tickers +++ b/public/tickers @@ -45,7 +45,7 @@ periodically until we stop it.

- +
package main
 
diff --git a/public/time b/public/time index 12137d8..ae80469 100644 --- a/public/time +++ b/public/time @@ -42,7 +42,7 @@ here are some examples.

- +
package main
 
diff --git a/public/time-formatting-parsing b/public/time-formatting-parsing index 5c8f266..e6b54d8 100644 --- a/public/time-formatting-parsing +++ b/public/time-formatting-parsing @@ -42,7 +42,7 @@ pattern-based layouts.

- +
package main
 
diff --git a/public/timeouts b/public/timeouts index 39238ed..36abd54 100644 --- a/public/timeouts +++ b/public/timeouts @@ -44,7 +44,7 @@ elegant thanks to channels and select.

- +
package main
 
diff --git a/public/timers b/public/timers index 977afef..082fb40 100644 --- a/public/timers +++ b/public/timers @@ -45,7 +45,7 @@ at tickers.

- +
package main
 
diff --git a/public/url-parsing b/public/url-parsing index 0cd07f4..4fd0fb8 100644 --- a/public/url-parsing +++ b/public/url-parsing @@ -42,7 +42,7 @@ Here’s how to parse URLs in Go.

- +
package main
 
diff --git a/public/values b/public/values index eef6bfb..807830b 100644 --- a/public/values +++ b/public/values @@ -43,7 +43,7 @@ basic examples.

- +
package main
 
diff --git a/public/variables b/public/variables index 8ce28a3..b10cded 100644 --- a/public/variables +++ b/public/variables @@ -43,7 +43,7 @@ calls.

- +
package main
 
diff --git a/public/variadic-functions b/public/variadic-functions index 536970b..d366658 100644 --- a/public/variadic-functions +++ b/public/variadic-functions @@ -44,7 +44,7 @@ function.

- +
package main
 
diff --git a/public/waitgroups b/public/waitgroups index d8c3f13..e9d39c7 100644 --- a/public/waitgroups +++ b/public/waitgroups @@ -42,7 +42,7 @@ use a wait group.

- +
package main
 
diff --git a/public/worker-pools b/public/worker-pools index 70a6a0b..97ea215 100644 --- a/public/worker-pools +++ b/public/worker-pools @@ -42,7 +42,7 @@ a worker pool using goroutines and channels.

- +
package main
 
diff --git a/public/writing-files b/public/writing-files index 2969c77..49214e1 100644 --- a/public/writing-files +++ b/public/writing-files @@ -42,7 +42,7 @@ ones we saw earlier for reading.

- +
package main
 
diff --git a/public/xml b/public/xml index e463b37..85a2d15 100644 --- a/public/xml +++ b/public/xml @@ -42,7 +42,7 @@ formats with the encoding.xml package.

- +
package main
 
diff --git a/tools/generate.go b/tools/generate.go index 7776380..04d2e92 100644 --- a/tools/generate.go +++ b/tools/generate.go @@ -165,12 +165,16 @@ func resetURLHashFile(codehash, code, sourcePath string) string { } func parseSegs(sourcePath string) ([]*Seg, string) { - var lines []string + var ( + lines []string + source []string + ) // Convert tabs to spaces for uniform rendering. for _, line := range readLines(sourcePath) { lines = append(lines, strings.Replace(line, "\t", " ", -1)) + source = append(source, line) } - filecontent := strings.Join(lines, "\n") + filecontent := strings.Join(source, "\n") segs := []*Seg{} lastSeen := "" for _, line := range lines {