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

Method String

ipnet.go:12–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10type ipNetValue net.IPNet
11
12func (ipnet ipNetValue) String() string {
13 n := net.IPNet(ipnet)
14 return n.String()
15}
16
17func (ipnet *ipNetValue) Set(value string) error {
18 _, n, err := net.ParseCIDR(strings.TrimSpace(value))

Callers

nothing calls this directly

Calls 2

IPNetMethod · 0.80
StringMethod · 0.65

Tested by

no test coverage detected