Flags

Map commandline arguments to variables.

Define your flags

who := flag.String("w", "World", "Whoom to greet") print(*who) Usage = func() { fmt.Fprintf(CommandLine.Output(), "Usage of %s:\n", os.Args[0]) PrintDefaults() }