tgpl/ch1/1_1.go

13 lines
165 B
Go
Raw Normal View History

2015-12-03 18:29:13 -08:00
package main
import (
"fmt"
"os"
"strings"
)
func main() {
fmt.Printf("command: %s\n", os.Args[0])
fmt.Printf("args: %s\n", strings.Join(os.Args[1:], " "))
}