From c8f07674f8528be3453a7bdde32c4e3a85742702 Mon Sep 17 00:00:00 2001 From: stephen mcquay Date: Wed, 27 Jul 2016 21:34:16 -0700 Subject: [PATCH] solved ex1.1 --- ch1/ex1.1/main.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 ch1/ex1.1/main.go diff --git a/ch1/ex1.1/main.go b/ch1/ex1.1/main.go new file mode 100644 index 0000000..278153c --- /dev/null +++ b/ch1/ex1.1/main.go @@ -0,0 +1,16 @@ +// e1.1 solves Exercise 1.1 +package main + +import ( + "fmt" + "os" +) + +func main() { + s, sep := "", "" + for _, arg := range os.Args { + s += sep + arg + sep = " " + } + fmt.Println(s) +}