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

16 lines
166 B
Go
Raw Permalink Normal View History

2020-02-13 11:45:11 +00:00
package main
import (
"fmt"
"os"
)
func main() {
var s, sep string
for i := 1; i < len(os.Args); i++ {
s += sep + os.Args[i]
sep = " "
}
fmt.Println(s)
}