In each iteration of the loop, range produces a pair of values:
Example: print of the main argument.
s, sep := "", "" for _, arg := range os.Args[1:] { s += sep + arg sep = " " } fmt.Println(s)