We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
flag.BoolFunc
flag.Func
1 parent 4ed295d commit bc45156Copy full SHA for bc45156
sloglint.go
@@ -47,7 +47,7 @@ func flags(opts *Options) flag.FlagSet {
47
fs := flag.NewFlagSet("sloglint", flag.ContinueOnError)
48
49
boolVar := func(value *bool, name, usage string) {
50
- fs.BoolFunc(name, usage, func(s string) error {
+ fs.Func(name, usage, func(s string) error {
51
v, err := strconv.ParseBool(s)
52
*value = v
53
return err
0 commit comments