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) +}