From c2735885215bf405b22c1ae606b6c58de6b746c5 Mon Sep 17 00:00:00 2001 From: Eli Bendersky Date: Fri, 6 Sep 2019 15:20:22 -0700 Subject: [PATCH] Make multiple imports consistent with import ( ... ) style Fixes #272 --- examples/base64-encoding/base64-encoding.go | 6 ++++-- examples/base64-encoding/base64-encoding.hash | 4 ++-- .../channel-synchronization.go | 6 ++++-- .../channel-synchronization.hash | 4 ++-- .../collection-functions/collection-functions.go | 6 ++++-- .../collection-functions/collection-functions.hash | 4 ++-- .../command-line-arguments.go | 6 ++++-- .../command-line-arguments.hash | 4 ++-- examples/command-line-flags/command-line-flags.go | 6 ++++-- .../command-line-flags/command-line-flags.hash | 4 ++-- examples/constants/constants.go | 6 ++++-- examples/constants/constants.hash | 4 ++-- examples/defer/defer.go | 6 ++++-- examples/defer/defer.hash | 4 ++-- .../environment-variables/environment-variables.go | 8 +++++--- .../environment-variables.hash | 4 ++-- examples/epoch/epoch.go | 6 ++++-- examples/epoch/epoch.hash | 4 ++-- examples/errors/errors.go | 6 ++++-- examples/errors/errors.hash | 4 ++-- examples/execing-processes/execing-processes.go | 8 +++++--- examples/execing-processes/execing-processes.hash | 4 ++-- examples/exit/exit.go | 6 ++++-- examples/exit/exit.hash | 4 ++-- examples/interfaces/interfaces.go | 6 ++++-- examples/interfaces/interfaces.hash | 4 ++-- examples/json/json.go | 8 +++++--- examples/json/json.hash | 4 ++-- examples/number-parsing/number-parsing.go | 6 ++++-- examples/number-parsing/number-parsing.hash | 4 ++-- examples/random-numbers/random-numbers.go | 8 +++++--- examples/random-numbers/random-numbers.hash | 4 ++-- examples/rate-limiting/rate-limiting.go | 6 ++++-- examples/rate-limiting/rate-limiting.hash | 4 ++-- .../regular-expressions/regular-expressions.go | 8 +++++--- .../regular-expressions/regular-expressions.hash | 4 ++-- examples/select/select.go | 6 ++++-- examples/select/select.hash | 4 ++-- examples/sha1-hashes/sha1-hashes.go | 6 ++++-- examples/sha1-hashes/sha1-hashes.hash | 4 ++-- examples/signals/signals.go | 10 ++++++---- examples/signals/signals.hash | 4 ++-- .../sorting-by-functions/sorting-by-functions.go | 6 ++++-- .../sorting-by-functions/sorting-by-functions.hash | 4 ++-- examples/sorting/sorting.go | 6 ++++-- examples/sorting/sorting.hash | 4 ++-- examples/spawning-processes/spawning-processes.go | 8 +++++--- .../spawning-processes/spawning-processes.hash | 4 ++-- examples/string-formatting/string-formatting.go | 6 ++++-- examples/string-formatting/string-formatting.hash | 4 ++-- examples/string-functions/string-functions.go | 6 ++++-- examples/string-functions/string-functions.hash | 4 ++-- examples/switch/switch.go | 6 ++++-- examples/switch/switch.hash | 4 ++-- examples/tickers/tickers.go | 6 ++++-- examples/tickers/tickers.hash | 4 ++-- .../time-formatting-parsing.go | 6 ++++-- .../time-formatting-parsing.hash | 4 ++-- examples/time/time.go | 6 ++++-- examples/time/time.hash | 4 ++-- examples/timeouts/timeouts.go | 6 ++++-- examples/timeouts/timeouts.hash | 4 ++-- examples/timers/timers.go | 6 ++++-- examples/timers/timers.hash | 4 ++-- examples/url-parsing/url-parsing.go | 8 +++++--- examples/url-parsing/url-parsing.hash | 4 ++-- examples/worker-pools/worker-pools.go | 6 ++++-- examples/worker-pools/worker-pools.hash | 4 ++-- public/base64-encoding | 10 ++++++---- public/channel-synchronization | 10 ++++++---- public/collection-functions | 10 ++++++---- public/command-line-arguments | 10 ++++++---- public/command-line-flags | 10 ++++++---- public/constants | 10 ++++++---- public/defer | 10 ++++++---- public/environment-variables | 12 +++++++----- public/epoch | 10 ++++++---- public/errors | 10 ++++++---- public/execing-processes | 12 +++++++----- public/exit | 10 ++++++---- public/interfaces | 10 ++++++---- public/json | 12 +++++++----- public/number-parsing | 10 ++++++---- public/random-numbers | 12 +++++++----- public/rate-limiting | 10 ++++++---- public/regular-expressions | 12 +++++++----- public/select | 10 ++++++---- public/sha1-hashes | 10 ++++++---- public/signals | 14 ++++++++------ public/sorting | 10 ++++++---- public/sorting-by-functions | 10 ++++++---- public/spawning-processes | 12 +++++++----- public/string-formatting | 10 ++++++---- public/string-functions | 10 ++++++---- public/switch | 10 ++++++---- public/tickers | 10 ++++++---- public/time | 10 ++++++---- public/time-formatting-parsing | 10 ++++++---- public/timeouts | 10 ++++++---- public/timers | 10 ++++++---- public/url-parsing | 12 +++++++----- public/worker-pools | 10 ++++++---- 102 files changed, 426 insertions(+), 290 deletions(-) diff --git a/examples/base64-encoding/base64-encoding.go b/examples/base64-encoding/base64-encoding.go index 4bdeaf1..09e94fd 100644 --- a/examples/base64-encoding/base64-encoding.go +++ b/examples/base64-encoding/base64-encoding.go @@ -6,8 +6,10 @@ package main // This syntax imports the `encoding/base64` package with // the `b64` name instead of the default `base64`. It'll // save us some space below. -import b64 "encoding/base64" -import "fmt" +import ( + b64 "encoding/base64" + "fmt" +) func main() { diff --git a/examples/base64-encoding/base64-encoding.hash b/examples/base64-encoding/base64-encoding.hash index 1cb409a..717ff3f 100644 --- a/examples/base64-encoding/base64-encoding.hash +++ b/examples/base64-encoding/base64-encoding.hash @@ -1,2 +1,2 @@ -c20da14820b656c867790f2e99bc37140babca8c -y_QTcqdkvZh +e0148b9b4acb01e849b8f678cba03f549d250c44 +V3oV1bvh94k diff --git a/examples/channel-synchronization/channel-synchronization.go b/examples/channel-synchronization/channel-synchronization.go index 79ceafe..889b97b 100644 --- a/examples/channel-synchronization/channel-synchronization.go +++ b/examples/channel-synchronization/channel-synchronization.go @@ -6,8 +6,10 @@ package main -import "fmt" -import "time" +import ( + "fmt" + "time" +) // This is the function we'll run in a goroutine. The // `done` channel will be used to notify another diff --git a/examples/channel-synchronization/channel-synchronization.hash b/examples/channel-synchronization/channel-synchronization.hash index e906123..9dea9a0 100644 --- a/examples/channel-synchronization/channel-synchronization.hash +++ b/examples/channel-synchronization/channel-synchronization.hash @@ -1,2 +1,2 @@ -eb022977181884c2ab0f2b69e50311769e67a509 -8lmP8beav0p +0d5a9de912e2a4a18943e082e2f8107cb75d0ce4 +fe9If6OhYMk diff --git a/examples/collection-functions/collection-functions.go b/examples/collection-functions/collection-functions.go index b6ff547..730644c 100644 --- a/examples/collection-functions/collection-functions.go +++ b/examples/collection-functions/collection-functions.go @@ -18,8 +18,10 @@ package main -import "strings" -import "fmt" +import ( + "fmt" + "strings" +) // Index returns the first index of the target string `t`, or // -1 if no match is found. diff --git a/examples/collection-functions/collection-functions.hash b/examples/collection-functions/collection-functions.hash index 4c45952..abbd3d5 100644 --- a/examples/collection-functions/collection-functions.hash +++ b/examples/collection-functions/collection-functions.hash @@ -1,2 +1,2 @@ -d961fc0e0074aed46cfd1516efdadea78781af56 -BJB_npWH516 +28456737ea996664bdaeb8e1e821d95697d00646 +8hI6oPNEfyh diff --git a/examples/command-line-arguments/command-line-arguments.go b/examples/command-line-arguments/command-line-arguments.go index e000e13..1104113 100644 --- a/examples/command-line-arguments/command-line-arguments.go +++ b/examples/command-line-arguments/command-line-arguments.go @@ -5,8 +5,10 @@ package main -import "os" -import "fmt" +import ( + "fmt" + "os" +) func main() { diff --git a/examples/command-line-arguments/command-line-arguments.hash b/examples/command-line-arguments/command-line-arguments.hash index 5bf53c7..ad22b59 100644 --- a/examples/command-line-arguments/command-line-arguments.hash +++ b/examples/command-line-arguments/command-line-arguments.hash @@ -1,2 +1,2 @@ -41c970a1ef29ad2a05307e6c783ff52ab80eaccd -6pFdjf800jj +9c80d495201148bbeb0fd0a5a2ce1735aeb34b60 +myJy_-H8Fo_Q diff --git a/examples/command-line-flags/command-line-flags.go b/examples/command-line-flags/command-line-flags.go index ab9c1b7..96647f5 100644 --- a/examples/command-line-flags/command-line-flags.go +++ b/examples/command-line-flags/command-line-flags.go @@ -8,8 +8,10 @@ package main // Go provides a `flag` package supporting basic // command-line flag parsing. We'll use this package to // implement our example command-line program. -import "flag" -import "fmt" +import ( + "flag" + "fmt" +) func main() { diff --git a/examples/command-line-flags/command-line-flags.hash b/examples/command-line-flags/command-line-flags.hash index 1b8f3ac..abee236 100644 --- a/examples/command-line-flags/command-line-flags.hash +++ b/examples/command-line-flags/command-line-flags.hash @@ -1,2 +1,2 @@ -e2ba0461c090789168c712cc7ed0f66aab09a8c8 -klFR5DitrCy +ab08bf890dcd87b807956b5bee441d59efe458e3 +lPaZodnG9TF diff --git a/examples/constants/constants.go b/examples/constants/constants.go index 50ce8f2..e7af860 100644 --- a/examples/constants/constants.go +++ b/examples/constants/constants.go @@ -3,8 +3,10 @@ package main -import "fmt" -import "math" +import ( + "fmt" + "math" +) // `const` declares a constant value. const s string = "constant" diff --git a/examples/constants/constants.hash b/examples/constants/constants.hash index 1e282aa..93d42ca 100644 --- a/examples/constants/constants.hash +++ b/examples/constants/constants.hash @@ -1,2 +1,2 @@ -2f2ec3a5ff4eef280199da1908eed261346fb40e -VhP0f8moZd3 +7cc09460e8dc6fffd0ba811679f92a85eb51e927 +gmjHSglwLic diff --git a/examples/defer/defer.go b/examples/defer/defer.go index 724e698..b4077c7 100644 --- a/examples/defer/defer.go +++ b/examples/defer/defer.go @@ -5,8 +5,10 @@ package main -import "fmt" -import "os" +import ( + "fmt" + "os" +) // Suppose we wanted to create a file, write to it, // and then close when we're done. Here's how we could diff --git a/examples/defer/defer.hash b/examples/defer/defer.hash index 78d3e35..d45bfd7 100644 --- a/examples/defer/defer.hash +++ b/examples/defer/defer.hash @@ -1,2 +1,2 @@ -fadbe9c05bb42db672316ba19adf3c2189c7b3f5 -OrCaBiCrTKq +4fc23579a9bd5d8512884902394f4dce51eb7d60 +QJJ2R6kv6K5 diff --git a/examples/environment-variables/environment-variables.go b/examples/environment-variables/environment-variables.go index beca4e7..b316b8a 100644 --- a/examples/environment-variables/environment-variables.go +++ b/examples/environment-variables/environment-variables.go @@ -5,9 +5,11 @@ package main -import "os" -import "strings" -import "fmt" +import ( + "fmt" + "os" + "strings" +) func main() { diff --git a/examples/environment-variables/environment-variables.hash b/examples/environment-variables/environment-variables.hash index 81632ac..b245851 100644 --- a/examples/environment-variables/environment-variables.hash +++ b/examples/environment-variables/environment-variables.hash @@ -1,2 +1,2 @@ -4d0832c5a1ddd4e95474791e8802c15452358214 -CZJ4R_uu6Uu +db2e203da519a22943753295e9cc27d89e4347b0 +bKuCOOD16KH diff --git a/examples/epoch/epoch.go b/examples/epoch/epoch.go index 63cffbb..ed7f442 100644 --- a/examples/epoch/epoch.go +++ b/examples/epoch/epoch.go @@ -5,8 +5,10 @@ package main -import "fmt" -import "time" +import ( + "fmt" + "time" +) func main() { diff --git a/examples/epoch/epoch.hash b/examples/epoch/epoch.hash index 3899c7f..d37c230 100644 --- a/examples/epoch/epoch.hash +++ b/examples/epoch/epoch.hash @@ -1,2 +1,2 @@ -61a498229c8878a97d729cfdd215e5f3960f87ac -eN1Qv2ATB-C +184c8f3e94dd28176be81956115ac417e33513a6 +3uYNHHRplmQ diff --git a/examples/errors/errors.go b/examples/errors/errors.go index 0b69bad..b850139 100644 --- a/examples/errors/errors.go +++ b/examples/errors/errors.go @@ -9,8 +9,10 @@ package main -import "errors" -import "fmt" +import ( + "errors" + "fmt" +) // By convention, errors are the last return value and // have type `error`, a built-in interface. diff --git a/examples/errors/errors.hash b/examples/errors/errors.hash index d0b2112..b650d25 100644 --- a/examples/errors/errors.hash +++ b/examples/errors/errors.hash @@ -1,2 +1,2 @@ -210ba0f8196006c0380acaec01655816848ef168 -mP_ZR1qjUvA +ed58ad3162d93c723d3efe72529a61ce7041fe13 +vrwN32gxaYx diff --git a/examples/execing-processes/execing-processes.go b/examples/execing-processes/execing-processes.go index b9caed1..18eb283 100644 --- a/examples/execing-processes/execing-processes.go +++ b/examples/execing-processes/execing-processes.go @@ -10,9 +10,11 @@ package main -import "syscall" -import "os" -import "os/exec" +import ( + "os" + "os/exec" + "syscall" +) func main() { diff --git a/examples/execing-processes/execing-processes.hash b/examples/execing-processes/execing-processes.hash index 4701404..020f78e 100644 --- a/examples/execing-processes/execing-processes.hash +++ b/examples/execing-processes/execing-processes.hash @@ -1,2 +1,2 @@ -b527bbb76a42dd4bae541b73a7377b7e83e79905 -bf11ADw-2Ho +e6b4830d4264f307506b54726ec79b25a0363874 +ahZjpJaZz44 diff --git a/examples/exit/exit.go b/examples/exit/exit.go index d1e3646..578e553 100644 --- a/examples/exit/exit.go +++ b/examples/exit/exit.go @@ -3,8 +3,10 @@ package main -import "fmt" -import "os" +import ( + "fmt" + "os" +) func main() { diff --git a/examples/exit/exit.hash b/examples/exit/exit.hash index 988b8f3..234717b 100644 --- a/examples/exit/exit.hash +++ b/examples/exit/exit.hash @@ -1,2 +1,2 @@ -dc0bb3eaafa045d6aa05e88aff39322a1ccf822e -vDaM0-MGJ_k +2316e6c8e364e2066c6bd350dc9b0b2af85b63fe +OX997ykuOGx diff --git a/examples/interfaces/interfaces.go b/examples/interfaces/interfaces.go index 2ac30bd..806ffa7 100644 --- a/examples/interfaces/interfaces.go +++ b/examples/interfaces/interfaces.go @@ -3,8 +3,10 @@ package main -import "fmt" -import "math" +import ( + "fmt" + "math" +) // Here's a basic interface for geometric shapes. type geometry interface { diff --git a/examples/interfaces/interfaces.hash b/examples/interfaces/interfaces.hash index d9daece..b6fa983 100644 --- a/examples/interfaces/interfaces.hash +++ b/examples/interfaces/interfaces.hash @@ -1,2 +1,2 @@ -3547b935d1e0322c0fb696726c27cae53a275e0a -0EwsqIn3TTi +aac1328f5a04568272b82753ff0762b9eacff4fc +hXTlbUAGcvn diff --git a/examples/json/json.go b/examples/json/json.go index 8d443bd..2594786 100644 --- a/examples/json/json.go +++ b/examples/json/json.go @@ -4,9 +4,11 @@ package main -import "encoding/json" -import "fmt" -import "os" +import ( + "encoding/json" + "fmt" + "os" +) // We'll use these two structs to demonstrate encoding and // decoding of custom types below. diff --git a/examples/json/json.hash b/examples/json/json.hash index 0c3c3a1..8c217d6 100644 --- a/examples/json/json.hash +++ b/examples/json/json.hash @@ -1,2 +1,2 @@ -6b92694b7be60cdec3e7a04e9fdbf49d5c84adb1 -63PdbTHxKJA +c751bc7223b8bc615f82fe7643ab98ce2b80240f +ROikmz5tRhZ diff --git a/examples/number-parsing/number-parsing.go b/examples/number-parsing/number-parsing.go index 15a03bf..6371637 100644 --- a/examples/number-parsing/number-parsing.go +++ b/examples/number-parsing/number-parsing.go @@ -5,8 +5,10 @@ package main // The built-in package `strconv` provides the number // parsing. -import "strconv" -import "fmt" +import ( + "fmt" + "strconv" +) func main() { diff --git a/examples/number-parsing/number-parsing.hash b/examples/number-parsing/number-parsing.hash index 3249903..eeaf3cd 100644 --- a/examples/number-parsing/number-parsing.hash +++ b/examples/number-parsing/number-parsing.hash @@ -1,2 +1,2 @@ -0d2155e9863a73c098d44637e92403d7f5e8e965 -NZh4LjhguvN +0191c7e43706640207c403ba92dd2272d66fc868 +t2q4KnWWTAw diff --git a/examples/random-numbers/random-numbers.go b/examples/random-numbers/random-numbers.go index b27c200..ebb6a8c 100644 --- a/examples/random-numbers/random-numbers.go +++ b/examples/random-numbers/random-numbers.go @@ -4,9 +4,11 @@ package main -import "time" -import "fmt" -import "math/rand" +import ( + "fmt" + "math/rand" + "time" +) func main() { diff --git a/examples/random-numbers/random-numbers.hash b/examples/random-numbers/random-numbers.hash index 87959ee..3ebbc4a 100644 --- a/examples/random-numbers/random-numbers.hash +++ b/examples/random-numbers/random-numbers.hash @@ -1,2 +1,2 @@ -8e97de760147b061dd09939db294c892211b6b80 -jiJaIjxL2sP +9374869a809d28ea784a9e1181b4aa1988018776 +DVHO7SjJZnp diff --git a/examples/rate-limiting/rate-limiting.go b/examples/rate-limiting/rate-limiting.go index 175bbcc..c32483d 100644 --- a/examples/rate-limiting/rate-limiting.go +++ b/examples/rate-limiting/rate-limiting.go @@ -6,8 +6,10 @@ package main -import "time" -import "fmt" +import ( + "fmt" + "time" +) func main() { diff --git a/examples/rate-limiting/rate-limiting.hash b/examples/rate-limiting/rate-limiting.hash index ccbbc49..be48802 100644 --- a/examples/rate-limiting/rate-limiting.hash +++ b/examples/rate-limiting/rate-limiting.hash @@ -1,2 +1,2 @@ -edad78bf3b36ddc9bec30b344b8a72be4de90f3b -l4uDE-RCDpa +357d83df3e48675eb1e135188cb9f07448c1f146 +AJ-MJephNib diff --git a/examples/regular-expressions/regular-expressions.go b/examples/regular-expressions/regular-expressions.go index 5d5ee8c..52ec06d 100644 --- a/examples/regular-expressions/regular-expressions.go +++ b/examples/regular-expressions/regular-expressions.go @@ -4,9 +4,11 @@ package main -import "bytes" -import "fmt" -import "regexp" +import ( + "bytes" + "fmt" + "regexp" +) func main() { diff --git a/examples/regular-expressions/regular-expressions.hash b/examples/regular-expressions/regular-expressions.hash index abc14cd..236706c 100644 --- a/examples/regular-expressions/regular-expressions.hash +++ b/examples/regular-expressions/regular-expressions.hash @@ -1,2 +1,2 @@ -7cde6b9af5cf6c47606001dd54eee468a6c61dbb -qR5gn2l0AGa +de24265897edf1d3913e3b87f70757284a66ecea +urHlUNDVenk diff --git a/examples/select/select.go b/examples/select/select.go index c05aacb..d2ce16e 100644 --- a/examples/select/select.go +++ b/examples/select/select.go @@ -4,8 +4,10 @@ package main -import "time" -import "fmt" +import ( + "fmt" + "time" +) func main() { diff --git a/examples/select/select.hash b/examples/select/select.hash index 5037668..ea97b26 100644 --- a/examples/select/select.hash +++ b/examples/select/select.hash @@ -1,2 +1,2 @@ -8d743edffd7de6bf7bccdf4437f45672b6adc75e -ZdSOPe1Gj13 +6e1125087bc036ebd905452300575f160d683918 +yF-xgN7Xf9P diff --git a/examples/sha1-hashes/sha1-hashes.go b/examples/sha1-hashes/sha1-hashes.go index db8bb39..24e5921 100644 --- a/examples/sha1-hashes/sha1-hashes.go +++ b/examples/sha1-hashes/sha1-hashes.go @@ -9,8 +9,10 @@ package main // Go implements several hash functions in various // `crypto/*` packages. -import "crypto/sha1" -import "fmt" +import ( + "crypto/sha1" + "fmt" +) func main() { s := "sha1 this string" diff --git a/examples/sha1-hashes/sha1-hashes.hash b/examples/sha1-hashes/sha1-hashes.hash index e56a014..5af2939 100644 --- a/examples/sha1-hashes/sha1-hashes.hash +++ b/examples/sha1-hashes/sha1-hashes.hash @@ -1,2 +1,2 @@ -6a896270e34f2696b881a8fa7e68bfff57dee51f -1oT-5GBUkLr +4cda643ba233014fe6b30966c37d4d0fcd4edbe8 +oqcrTfY4Ykd diff --git a/examples/signals/signals.go b/examples/signals/signals.go index 38e17ad..4cd373b 100644 --- a/examples/signals/signals.go +++ b/examples/signals/signals.go @@ -7,10 +7,12 @@ package main -import "fmt" -import "os" -import "os/signal" -import "syscall" +import ( + "fmt" + "os" + "os/signal" + "syscall" +) func main() { diff --git a/examples/signals/signals.hash b/examples/signals/signals.hash index 94e8edb..82345ca 100644 --- a/examples/signals/signals.hash +++ b/examples/signals/signals.hash @@ -1,2 +1,2 @@ -9720d747e3ab2893df508a70cbb341c90fdd7ca1 -9koJAW1raI5 +1e43c6f63f1d57e1a52c89f52d35b68757e9676b +_6oj-T3Gko2 diff --git a/examples/sorting-by-functions/sorting-by-functions.go b/examples/sorting-by-functions/sorting-by-functions.go index b880564..8524f66 100644 --- a/examples/sorting-by-functions/sorting-by-functions.go +++ b/examples/sorting-by-functions/sorting-by-functions.go @@ -6,8 +6,10 @@ package main -import "sort" -import "fmt" +import ( + "fmt" + "sort" +) // In order to sort by a custom function in Go, we need a // corresponding type. Here we've created a `byLength` diff --git a/examples/sorting-by-functions/sorting-by-functions.hash b/examples/sorting-by-functions/sorting-by-functions.hash index 776dde8..d62f035 100644 --- a/examples/sorting-by-functions/sorting-by-functions.hash +++ b/examples/sorting-by-functions/sorting-by-functions.hash @@ -1,2 +1,2 @@ -6a04058b564d5741815e523f97f240ee6563cb15 -y3kuCwIFRYK +f7d0b7840dd12601fb86946f9dc4c38fb1c0501f +Jtxf94x94Hx diff --git a/examples/sorting/sorting.go b/examples/sorting/sorting.go index b6317ed..acc67d8 100644 --- a/examples/sorting/sorting.go +++ b/examples/sorting/sorting.go @@ -4,8 +4,10 @@ package main -import "fmt" -import "sort" +import ( + "fmt" + "sort" +) func main() { diff --git a/examples/sorting/sorting.hash b/examples/sorting/sorting.hash index ae5e449..d72396f 100644 --- a/examples/sorting/sorting.hash +++ b/examples/sorting/sorting.hash @@ -1,2 +1,2 @@ -4e576421f2bdbd11847c367d223bd30d0e301990 -e6hp3Rn-oH6 +e11e944d34b21e75ce4f7c91026d4200ce592dc5 +tAWAkRlBJNX diff --git a/examples/spawning-processes/spawning-processes.go b/examples/spawning-processes/spawning-processes.go index 98e0f65..58fdae8 100644 --- a/examples/spawning-processes/spawning-processes.go +++ b/examples/spawning-processes/spawning-processes.go @@ -7,9 +7,11 @@ package main -import "fmt" -import "io/ioutil" -import "os/exec" +import ( + "fmt" + "io/ioutil" + "os/exec" +) func main() { diff --git a/examples/spawning-processes/spawning-processes.hash b/examples/spawning-processes/spawning-processes.hash index dd1b749..bcde707 100644 --- a/examples/spawning-processes/spawning-processes.hash +++ b/examples/spawning-processes/spawning-processes.hash @@ -1,2 +1,2 @@ -0b676b93e41ac5434003c194bc038d5f3ce76bc8 -6HRWVK5gPYU +cc68e4290f10209ad2fa8db74fdfaea7fdb44d5c +QS_Nkoe8VLG diff --git a/examples/string-formatting/string-formatting.go b/examples/string-formatting/string-formatting.go index de7c285..958cb64 100644 --- a/examples/string-formatting/string-formatting.go +++ b/examples/string-formatting/string-formatting.go @@ -4,8 +4,10 @@ package main -import "fmt" -import "os" +import ( + "fmt" + "os" +) type point struct { x, y int diff --git a/examples/string-formatting/string-formatting.hash b/examples/string-formatting/string-formatting.hash index ba1b396..c339d9b 100644 --- a/examples/string-formatting/string-formatting.hash +++ b/examples/string-formatting/string-formatting.hash @@ -1,2 +1,2 @@ -5f39ae6d8f26d59a688a9a9d7d13a5c1d0f7a08b -CkBQ3CFpHQ9 +12b245c576b43537c092a5b84995ebca8ce78a57 +vmYSdxfUcRh diff --git a/examples/string-functions/string-functions.go b/examples/string-functions/string-functions.go index c8f2b54..676e904 100644 --- a/examples/string-functions/string-functions.go +++ b/examples/string-functions/string-functions.go @@ -4,8 +4,10 @@ package main -import s "strings" -import "fmt" +import ( + "fmt" + s "strings" +) // We alias `fmt.Println` to a shorter name as we'll use // it a lot below. diff --git a/examples/string-functions/string-functions.hash b/examples/string-functions/string-functions.hash index 068746c..568c7c6 100644 --- a/examples/string-functions/string-functions.hash +++ b/examples/string-functions/string-functions.hash @@ -1,2 +1,2 @@ -17aa523bbd606fa0b624fae44b89812d46330755 -Vn4D3y4_711 +bf39c7540bd78eba38eb5a9047a9d0ffc7235f85 +xoRUhG86wsF diff --git a/examples/switch/switch.go b/examples/switch/switch.go index 8d72bee..2d2ec2e 100644 --- a/examples/switch/switch.go +++ b/examples/switch/switch.go @@ -3,8 +3,10 @@ package main -import "fmt" -import "time" +import ( + "fmt" + "time" +) func main() { diff --git a/examples/switch/switch.hash b/examples/switch/switch.hash index 5559e1a..54d2e9f 100644 --- a/examples/switch/switch.hash +++ b/examples/switch/switch.hash @@ -1,2 +1,2 @@ -b47004b3e3b6d787ea98642dc5b955df57cd2bcd -TJ4Az0KuLfL +2486fc553301cdeac9a26f3d0b3aed4143d9f4f0 +ZcDzdx3nYQn diff --git a/examples/tickers/tickers.go b/examples/tickers/tickers.go index 1d2a8e5..c23dd5c 100644 --- a/examples/tickers/tickers.go +++ b/examples/tickers/tickers.go @@ -6,8 +6,10 @@ package main -import "time" -import "fmt" +import ( + "fmt" + "time" +) func main() { diff --git a/examples/tickers/tickers.hash b/examples/tickers/tickers.hash index 28a173e..e724ec1 100644 --- a/examples/tickers/tickers.hash +++ b/examples/tickers/tickers.hash @@ -1,2 +1,2 @@ -c83f34821c69d156713919a42c73ec9f58560f72 -IUmkvvXL5Ok +4a42333d14f902e890902343c7bd9b9c735fd8ad +n1q1sSGEvmv diff --git a/examples/time-formatting-parsing/time-formatting-parsing.go b/examples/time-formatting-parsing/time-formatting-parsing.go index a213baf..2968c3c 100644 --- a/examples/time-formatting-parsing/time-formatting-parsing.go +++ b/examples/time-formatting-parsing/time-formatting-parsing.go @@ -3,8 +3,10 @@ package main -import "fmt" -import "time" +import ( + "fmt" + "time" +) func main() { p := fmt.Println diff --git a/examples/time-formatting-parsing/time-formatting-parsing.hash b/examples/time-formatting-parsing/time-formatting-parsing.hash index 0d05bde..eee6d65 100644 --- a/examples/time-formatting-parsing/time-formatting-parsing.hash +++ b/examples/time-formatting-parsing/time-formatting-parsing.hash @@ -1,2 +1,2 @@ -1f9962260f5c92efe57db0b96099b3dd06c90333 -nHAisH6amZG +9e3f17061fef280191e3e8518365e231e17a5d5a +1410R7Fcyx0 diff --git a/examples/time/time.go b/examples/time/time.go index 1d01432..db96527 100644 --- a/examples/time/time.go +++ b/examples/time/time.go @@ -3,8 +3,10 @@ package main -import "fmt" -import "time" +import ( + "fmt" + "time" +) func main() { p := fmt.Println diff --git a/examples/time/time.hash b/examples/time/time.hash index 9542207..2c9d415 100644 --- a/examples/time/time.hash +++ b/examples/time/time.hash @@ -1,2 +1,2 @@ -b6308f1fea7665e89a28f54aac6cb49b95685eb5 -PZMCzzaJURJ +c47d853fa7527a652ce78b0285e452c6cd740050 +u-7i_p8BHVt diff --git a/examples/timeouts/timeouts.go b/examples/timeouts/timeouts.go index ce1d1cd..3f25aec 100644 --- a/examples/timeouts/timeouts.go +++ b/examples/timeouts/timeouts.go @@ -5,8 +5,10 @@ package main -import "time" -import "fmt" +import ( + "fmt" + "time" +) func main() { diff --git a/examples/timeouts/timeouts.hash b/examples/timeouts/timeouts.hash index f510bfa..f622aeb 100644 --- a/examples/timeouts/timeouts.hash +++ b/examples/timeouts/timeouts.hash @@ -1,2 +1,2 @@ -b1e8d0efbabd0c52271a85fad5ad58dcd1c7c476 -gyY_qDsRVUe +b8d3e745539b24d3530ca21efcdc924f08769edb +TYJgoFjlTd6 diff --git a/examples/timers/timers.go b/examples/timers/timers.go index 939cf11..d0256e6 100644 --- a/examples/timers/timers.go +++ b/examples/timers/timers.go @@ -6,8 +6,10 @@ package main -import "time" -import "fmt" +import ( + "fmt" + "time" +) func main() { diff --git a/examples/timers/timers.hash b/examples/timers/timers.hash index f51b1f0..8c0f2c4 100644 --- a/examples/timers/timers.hash +++ b/examples/timers/timers.hash @@ -1,2 +1,2 @@ -e10c601ab3b702dfcea728c1edb31673561484b5 -pybl9hRvJq2 +e8e501d6083bea786629ca5e485e8b18caab4815 +pLnKEIesooU diff --git a/examples/url-parsing/url-parsing.go b/examples/url-parsing/url-parsing.go index b4e0050..f7590f1 100644 --- a/examples/url-parsing/url-parsing.go +++ b/examples/url-parsing/url-parsing.go @@ -3,9 +3,11 @@ package main -import "fmt" -import "net" -import "net/url" +import ( + "fmt" + "net" + "net/url" +) func main() { diff --git a/examples/url-parsing/url-parsing.hash b/examples/url-parsing/url-parsing.hash index 019a1a6..77021f1 100644 --- a/examples/url-parsing/url-parsing.hash +++ b/examples/url-parsing/url-parsing.hash @@ -1,2 +1,2 @@ -b7a0813e9413bfcc956cc58b850f655dd129ebb7 -AL79Lv-9CWo +babc12f5066652f4cb0151231c06f1037298ff28 +M218D9Tldlr diff --git a/examples/worker-pools/worker-pools.go b/examples/worker-pools/worker-pools.go index 84c8bf1..1584d59 100644 --- a/examples/worker-pools/worker-pools.go +++ b/examples/worker-pools/worker-pools.go @@ -3,8 +3,10 @@ package main -import "fmt" -import "time" +import ( + "fmt" + "time" +) // Here's the worker, of which we'll run several // concurrent instances. These workers will receive diff --git a/examples/worker-pools/worker-pools.hash b/examples/worker-pools/worker-pools.hash index 9f101b7..dbfeb88 100644 --- a/examples/worker-pools/worker-pools.hash +++ b/examples/worker-pools/worker-pools.hash @@ -1,2 +1,2 @@ -bc69c6602d438413dcb9ceac112299ee253e4575 -yuHsGf712D1 +9b30cdfc3f46d634c3b8671a7ae1551c133fb6e2 +IiKZ-nj-nKY diff --git a/public/base64-encoding b/public/base64-encoding index d60fe9d..7bf8d28 100644 --- a/public/base64-encoding +++ b/public/base64-encoding @@ -42,7 +42,7 @@ encoding/decoding.

- +
package main
 
@@ -58,8 +58,10 @@ save us some space below.

-
import b64 "encoding/base64"
-import "fmt"
+          
import (
+    b64 "encoding/base64"
+    "fmt"
+)
 
@@ -189,7 +191,7 @@ but they both decode to the original string as desired.

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

- +
package main
 
@@ -58,8 +58,10 @@ you may prefer to use a WaitGroup.

-
import "fmt"
-import "time"
+          
import (
+    "fmt"
+    "time"
+)
 
@@ -182,7 +184,7 @@ started.

diff --git a/public/collection-functions b/public/collection-functions index 2acb092..569c4b3 100644 --- a/public/collection-functions +++ b/public/collection-functions @@ -75,7 +75,7 @@ helper function.

- +
package main
 
@@ -88,8 +88,10 @@ helper function.

-
import "strings"
-import "fmt"
+          
import (
+    "fmt"
+    "strings"
+)
 
@@ -369,7 +371,7 @@ type.

diff --git a/public/command-line-arguments b/public/command-line-arguments index 1cb6ffd..a2aa9ff 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
 
@@ -57,8 +57,10 @@ For example, go run hello.go uses run and -
import "os"
-import "fmt"
+          
import (
+    "fmt"
+    "os"
+)
 
@@ -168,7 +170,7 @@ with flags.

diff --git a/public/command-line-flags b/public/command-line-flags index b2230fa..76e2bfc 100644 --- a/public/command-line-flags +++ b/public/command-line-flags @@ -44,7 +44,7 @@ command-line flag.

- +
package main
 
@@ -60,8 +60,10 @@ implement our example command-line program.

-
import "flag"
-import "fmt"
+          
import (
+    "flag"
+    "fmt"
+)
 
@@ -308,7 +310,7 @@ and show the help text again.

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

- +
package main
 
@@ -55,8 +55,10 @@ and numeric values.

-
import "fmt"
-import "math"
+          
import (
+    "fmt"
+    "math"
+)
 
@@ -181,7 +183,7 @@ assignment or function call. For example, here
diff --git a/public/defer b/public/defer index 6c62c64..f99d59d 100644 --- a/public/defer +++ b/public/defer @@ -44,7 +44,7 @@ purposes of cleanup. defer is often used where e.g. - +
package main
 
@@ -57,8 +57,10 @@ purposes of cleanup. defer is often used where e.g. -
import "fmt"
-import "os"
+          
import (
+    "fmt"
+    "os"
+)
 
@@ -210,7 +212,7 @@ after being written.

diff --git a/public/environment-variables b/public/environment-variables index c452feb..25504ae 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
 
@@ -57,9 +57,11 @@ Let’s look at how to set, get, and list environment variables.

-
import "os"
-import "strings"
-import "fmt"
+          
import (
+    "fmt"
+    "os"
+    "strings"
+)
 
@@ -184,7 +186,7 @@ program picks that value up.

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

- +
package main
 
@@ -57,8 +57,10 @@ Here’s how to do it in Go.

-
import "fmt"
-import "time"
+          
import (
+    "fmt"
+    "time"
+)
 
@@ -175,7 +177,7 @@ parsing and formatting.

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

- +
package main
 
@@ -61,8 +61,10 @@ non-error tasks.

-
import "errors"
-import "fmt"
+          
import (
+    "errors"
+    "fmt"
+)
 
@@ -297,7 +299,7 @@ on the Go blog for more on error handling.

diff --git a/public/execing-processes b/public/execing-processes index 500d807..98ce62a 100644 --- a/public/execing-processes +++ b/public/execing-processes @@ -49,7 +49,7 @@ function.

- +
package main
 
@@ -62,9 +62,11 @@ function.

-
import "syscall"
-import "os"
-import "os/exec"
+          
import (
+    "os"
+    "os/exec"
+    "syscall"
+)
 
@@ -201,7 +203,7 @@ processes covers most use cases for fork.

diff --git a/public/exit b/public/exit index b8c38a6..5929eb6 100644 --- a/public/exit +++ b/public/exit @@ -38,7 +38,7 @@ status.

- +
package main
 
@@ -51,8 +51,10 @@ status.

-
import "fmt"
-import "os"
+          
import (
+    "fmt"
+    "os"
+)
 
@@ -168,7 +170,7 @@ the status in the terminal.

diff --git a/public/interfaces b/public/interfaces index eddb066..fad0ed0 100644 --- a/public/interfaces +++ b/public/interfaces @@ -42,7 +42,7 @@ signatures.

- +
package main
 
@@ -55,8 +55,10 @@ signatures.

-
import "fmt"
-import "math"
+          
import (
+    "fmt"
+    "math"
+)
 
@@ -234,7 +236,7 @@ these structs as arguments to measure.

diff --git a/public/json b/public/json index a0d6395..e2327ec 100644 --- a/public/json +++ b/public/json @@ -43,7 +43,7 @@ data types.

- +
package main
 
@@ -56,9 +56,11 @@ data types.

-
import "encoding/json"
-import "fmt"
-import "os"
+          
import (
+    "encoding/json"
+    "fmt"
+    "os"
+)
 
@@ -414,7 +416,7 @@ for more.

diff --git a/public/number-parsing b/public/number-parsing index db31e0d..269da85 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
 
@@ -57,8 +57,10 @@ parsing.

-
import "strconv"
-import "fmt"
+          
import (
+    "fmt"
+    "strconv"
+)
 
@@ -211,7 +213,7 @@ bits.

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

- +
package main
 
@@ -56,9 +56,11 @@ generation.

-
import "time"
-import "fmt"
-import "math/rand"
+          
import (
+    "fmt"
+    "math/rand"
+    "time"
+)
 
@@ -227,7 +229,7 @@ that Go can provide.

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

- +
package main
 
@@ -58,8 +58,10 @@ channels, and tickers.

-
import "time"
-import "fmt"
+          
import (
+    "fmt"
+    "time"
+)
 
@@ -259,7 +261,7 @@ then serve the remaining 2 with ~200ms delays each.

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

- +
package main
 
@@ -56,9 +56,11 @@ in Go.

-
import "bytes"
-import "fmt"
-import "regexp"
+          
import (
+    "bytes"
+    "fmt"
+    "regexp"
+)
 
@@ -340,7 +342,7 @@ the regexp package docs
diff --git a/public/select b/public/select index 8be3cf4..116ac3b 100644 --- a/public/select +++ b/public/select @@ -43,7 +43,7 @@ select is a powerful feature of Go.

- +
package main
 
@@ -56,8 +56,10 @@ select is a powerful feature of Go.

-
import "time"
-import "fmt"
+          
import (
+    "fmt"
+    "time"
+)
 
@@ -181,7 +183,7 @@ concurrently.

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

- +
package main
 
@@ -61,8 +61,10 @@ compute SHA1 hashes in Go.

-
import "crypto/sha1"
-import "fmt"
+          
import (
+    "crypto/sha1"
+    "fmt"
+)
 
@@ -201,7 +203,7 @@ you should carefully research
diff --git a/public/signals b/public/signals index 28c2b5a..b0109b5 100644 --- a/public/signals +++ b/public/signals @@ -46,7 +46,7 @@ Here’s how to handle signals in Go with channels.

- +
package main
 
@@ -59,10 +59,12 @@ Here’s how to handle signals in Go with channels.

-
import "fmt"
-import "os"
-import "os/signal"
-import "syscall"
+          
import (
+    "fmt"
+    "os"
+    "os/signal"
+    "syscall"
+)
 
@@ -186,7 +188,7 @@ causing the program to print interrupt and then exit.

diff --git a/public/sorting b/public/sorting index b52d375..ded8f48 100644 --- a/public/sorting +++ b/public/sorting @@ -43,7 +43,7 @@ builtins first.

- +
package main
 
@@ -56,8 +56,10 @@ builtins first.

-
import "fmt"
-import "sort"
+          
import (
+    "fmt"
+    "sort"
+)
 
@@ -158,7 +160,7 @@ slices and true as the result of our AreSorted test. diff --git a/public/sorting-by-functions b/public/sorting-by-functions index 904dbf5..f86a188 100644 --- a/public/sorting-by-functions +++ b/public/sorting-by-functions @@ -45,7 +45,7 @@ in Go.

- +
package main
 
@@ -58,8 +58,10 @@ in Go.

-
import "sort"
-import "fmt"
+          
import (
+    "fmt"
+    "sort"
+)
 
@@ -175,7 +177,7 @@ functions.

diff --git a/public/spawning-processes b/public/spawning-processes index 634bd69..da8dfc5 100644 --- a/public/spawning-processes +++ b/public/spawning-processes @@ -46,7 +46,7 @@ of spawning processes from Go.

- +
package main
 
@@ -59,9 +59,11 @@ of spawning processes from Go.

-
import "fmt"
-import "io/ioutil"
-import "os/exec"
+          
import (
+    "fmt"
+    "io/ioutil"
+    "os/exec"
+)
 
@@ -257,7 +259,7 @@ as if we had run them directly from the command-line.

diff --git a/public/string-formatting b/public/string-formatting index 438e9a5..6616ed0 100644 --- a/public/string-formatting +++ b/public/string-formatting @@ -43,7 +43,7 @@ common string formatting tasks.

- +
package main
 
@@ -56,8 +56,10 @@ common string formatting tasks.

-
import "fmt"
-import "os"
+          
import (
+    "fmt"
+    "os"
+)
 
@@ -455,7 +457,7 @@ and returns a string without printing it anywhere.

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

- +
package main
 
@@ -56,8 +56,10 @@ to give you a sense of the package.

-
import s "strings"
-import "fmt"
+          
import (
+    "fmt"
+    s "strings"
+)
 
@@ -207,7 +209,7 @@ for more information.

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

- +
package main
 
@@ -55,8 +55,10 @@ branches.

-
import "fmt"
-import "time"
+          
import (
+    "fmt"
+    "time"
+)
 
@@ -201,7 +203,7 @@ type corresponding to its clause.

diff --git a/public/tickers b/public/tickers index 8bb9280..dd2bb28 100644 --- a/public/tickers +++ b/public/tickers @@ -45,7 +45,7 @@ periodically until we stop it.

- +
package main
 
@@ -58,8 +58,10 @@ periodically until we stop it.

-
import "time"
-import "fmt"
+          
import (
+    "fmt"
+    "time"
+)
 
@@ -169,7 +171,7 @@ before we stop it.

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

- +
package main
 
@@ -55,8 +55,10 @@ here are some examples.

-
import "fmt"
-import "time"
+          
import (
+    "fmt"
+    "time"
+)
 
@@ -268,7 +270,7 @@ the Unix epoch.

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

- +
package main
 
@@ -55,8 +55,10 @@ pattern-based layouts.

-
import "fmt"
-import "time"
+          
import (
+    "fmt"
+    "time"
+)
 
@@ -202,7 +204,7 @@ explaining the parsing problem.

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

- +
package main
 
@@ -57,8 +57,10 @@ elegant thanks to channels and select.

-
import "time"
-import "fmt"
+          
import (
+    "fmt"
+    "time"
+)
 
@@ -179,7 +181,7 @@ out and the second succeeding.

diff --git a/public/timers b/public/timers index 1cff001..977afef 100644 --- a/public/timers +++ b/public/timers @@ -45,7 +45,7 @@ at tickers.

- +
package main
 
@@ -58,8 +58,10 @@ at tickers.

-
import "time"
-import "fmt"
+          
import (
+    "fmt"
+    "time"
+)
 
@@ -168,7 +170,7 @@ a chance to expire.

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

- +
package main
 
@@ -55,9 +55,11 @@ Here’s how to parse URLs in Go.

-
import "fmt"
-import "net"
-import "net/url"
+          
import (
+    "fmt"
+    "net"
+    "net/url"
+)
 
@@ -233,7 +235,7 @@ pieces that we extracted.

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

- +
package main
 
@@ -55,8 +55,10 @@ a worker pool using goroutines and channels.

-
import "fmt"
-import "time"
+          
import (
+    "fmt"
+    "time"
+)
 
@@ -221,7 +223,7 @@ there are 3 workers operating concurrently.