Newer
Older
01_hello / args.go
yhornisse on 20 Sep 2021 202 bytes add args sample
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:], ","))
}