diff --git a/examples/environment-variables/environment-variables.go b/examples/environment-variables/environment-variables.go index d1754a1..e3e42a5 100644 --- a/examples/environment-variables/environment-variables.go +++ b/examples/environment-variables/environment-variables.go @@ -23,7 +23,7 @@ func main() { // Use `os.Environ` to list all key/value pairs in the // environment. This returns a slice of strings in the - // form `KEY=value`. You can `strings.Split` them to + // form `KEY=value`. You can `strings.SplitN` them to // get the key and value. Here we print all the keys. fmt.Println() for _, e := range os.Environ() { diff --git a/examples/environment-variables/environment-variables.hash b/examples/environment-variables/environment-variables.hash index e410038..e12d01d 100644 --- a/examples/environment-variables/environment-variables.hash +++ b/examples/environment-variables/environment-variables.hash @@ -1,2 +1,2 @@ -b651bc17e4d2880cba0885c52f476ab2a86e39ae -MTbfmZYa4vP +69d6a768ac84c873ae03b2169ac5cc4cfbc601a6 +gSTxKWLOHRb diff --git a/public/environment-variables b/public/environment-variables index 9920efd..ecaef7e 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
Use os.Environ
to list all key/value pairs in the
environment. This returns a slice of strings in the
-form KEY=value
. You can strings.Split
them to
+form KEY=value
. You can strings.SplitN
them to
get the key and value. Here we print all the keys.