From 23dba0980b7a15573df1f6e92bcef470a6e099c7 Mon Sep 17 00:00:00 2001 From: Mark McGranaghan Date: Thu, 20 Sep 2012 22:35:04 -0700 Subject: [PATCH] note --- 051-env.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/051-env.go b/051-env.go index e4f9100..593bfec 100644 --- a/051-env.go +++ b/051-env.go @@ -8,8 +8,8 @@ import ( func main() { for _, e := range os.Environ() { // `Environ` returns a slice of strings in the form - pair := strings.Split(e, "=") // `KEY=value`. - fmt.Println(pair[0]) + pair := strings.Split(e, "=") // `KEY=value`. You can `strings.Split` them to get + fmt.Println(pair[0]) // the key and value. } fmt.Println()