From acd75f4b038da7bb868498f11313d772aaf04cbc Mon Sep 17 00:00:00 2001 From: stephen mcquay Date: Wed, 27 Jul 2016 21:46:24 -0700 Subject: [PATCH] solved ex1.2 --- ch1/ex1.2/main.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 ch1/ex1.2/main.go diff --git a/ch1/ex1.2/main.go b/ch1/ex1.2/main.go new file mode 100644 index 0000000..118028c --- /dev/null +++ b/ch1/ex1.2/main.go @@ -0,0 +1,13 @@ +// e1.2 solves Exercise 1.2 +package main + +import ( + "fmt" + "os" +) + +func main() { + for i, l := range os.Args { + fmt.Println(i, l) + } +}