Fix os.Args usage in example code
Drew DeVault
4 years ago
7 | 7 |
// )
|
8 | 8 |
//
|
9 | 9 |
// func main() {
|
10 | |
// opts, optind, err := getopt.Getopts(os.Args[1:], "abc:d:")
|
|
10 |
// opts, optind, err := getopt.Getopts(os.Args, "abc:d:")
|
11 | 11 |
// if err != nil {
|
12 | 12 |
// panic(err)
|
13 | 13 |
// }
|