shad-go/lectures/00-intro/echo2/echo2.go

16 lines
156 B
Go
Raw Normal View History

2020-02-13 11:45:11 +00:00
package main
import (
"fmt"
"os"
)
func main() {
s, sep := "", ""
for _, arg := range os.Args[1:] {
s += sep + arg
sep = " "
}
fmt.Println(s)
}