LearnGoDonovan/ch1/echo1.go

17 строки
167 B
Go

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