MCPcopy
hub / github.com/spf13/viper / VisitAll

Method VisitAll

flags.go:27–31  ·  view source on GitHub ↗

VisitAll iterates over all *pflag.Flag inside the *pflag.FlagSet.

(fn func(flag FlagValue))

Source from the content-addressed store, hash-verified

25
26// VisitAll iterates over all *pflag.Flag inside the *pflag.FlagSet.
27func (p pflagValueSet) VisitAll(fn func(flag FlagValue)) {
28 p.flags.VisitAll(func(flag *pflag.Flag) {
29 fn(pflagValue{flag})
30 })
31}
32
33// pflagValue is a wrapper around *pflag.flag
34// that implements FlagValue.

Callers

nothing calls this directly

Calls 1

VisitAllMethod · 0.65

Tested by

no test coverage detected