MCPcopy
hub / github.com/spf13/pflag / IPNetVarP

Method IPNetVarP

ipnet.go:59–61  ·  view source on GitHub ↗

IPNetVarP is like IPNetVar, but accepts a shorthand letter that can be used after a single dash.

(p *net.IPNet, name, shorthand string, value net.IPNet, usage string)

Source from the content-addressed store, hash-verified

57
58// IPNetVarP is like IPNetVar, but accepts a shorthand letter that can be used after a single dash.
59func (f *FlagSet) IPNetVarP(p *net.IPNet, name, shorthand string, value net.IPNet, usage string) {
60 f.VarP(newIPNetValue(value, p), name, shorthand, usage)
61}
62
63// IPNetVar defines an net.IPNet flag with specified name, default value, and usage string.
64// The argument p points to an net.IPNet variable in which to store the value of the flag.

Callers 2

IPNetMethod · 0.95
IPNetPMethod · 0.95

Calls 2

VarPMethod · 0.95
newIPNetValueFunction · 0.85

Tested by

no test coverage detected