package main import ( "fmt" "os" "strings" ) func main() { fmt.Printf("args: %+v\n", os.Args) fmt.Printf("args: %+v\n", os.Args[1:]) fmt.Printf("args: %s\n", strings.Join(os.Args[1:], ",")) }