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

Method IPNetP

ipnet.go:83–87  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

81
82// IPNetP is like IPNet, but accepts a shorthand letter that can be used after a single dash.
83func (f *FlagSet) IPNetP(name, shorthand string, value net.IPNet, usage string) *net.IPNet {
84 p := new(net.IPNet)
85 f.IPNetVarP(p, name, shorthand, value, usage)
86 return p
87}
88
89// IPNet defines an net.IPNet flag with specified name, default value, and usage string.
90// The return value is the address of an net.IPNet variable that stores the value of the flag.

Callers 2

IPNetFunction · 0.80
IPNetPFunction · 0.80

Calls 1

IPNetVarPMethod · 0.95

Tested by

no test coverage detected