Codebase list golang-sourcehut-sircmpwn-getopt / 520b934
Fix os.Args usage in example code Drew DeVault 4 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
77 // )
88 //
99 // func main() {
10 // opts, optind, err := getopt.Getopts(os.Args[1:], "abc:d:")
10 // opts, optind, err := getopt.Getopts(os.Args, "abc:d:")
1111 // if err != nil {
1212 // panic(err)
1313 // }