Go stdlib package — flag. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
.Arg()NeutralArg(i int) string
Arg returns the i'th command-line argument. Arg(0) is the first remaining argument
.Bool()NeutralBool(name string, value bool, usage string) *bool
Bool defines a bool flag with specified name, default value, and usage string.
.BoolFunc()NeutralBoolFunc(name string, usage string, fn func(string) error)
BoolFunc defines a flag with the specified name and usage string without requiring values.
.BoolVar()NeutralBoolVar(p *bool, name string, value bool, usage string)
BoolVar defines a bool flag with specified name, default value, and usage string.
.Duration()NeutralDuration(name string, value time.Duration, usage string) *time.Duration
Duration defines a time.Duration flag with specified name, default value, and usage string.
.DurationVar()NeutralDurationVar(p *time.Duration, name string, value time.Duration, usage string)
DurationVar defines a time.Duration flag with specified name, default value, and usage string.
.FlagSet.Arg()NeutralFlagSet.Arg(i int) string
Arg returns the i'th argument. Arg(0) is the first remaining argument
.FlagSet.Bool()NeutralFlagSet.Bool(name string, value bool, usage string) *bool
Bool defines a bool flag with specified name, default value, and usage string.
| FQN | Field | |
|---|---|---|
| flag | fqns[0] |
Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.
// standard library — no go.mod entry required
from codepathfinder.go_rule import ... # flag