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

Function newIPNetSliceValue

ipnet_slice.go:16–21  ·  view source on GitHub ↗
(val []net.IPNet, p *[]net.IPNet)

Source from the content-addressed store, hash-verified

14}
15
16func newIPNetSliceValue(val []net.IPNet, p *[]net.IPNet) *ipNetSliceValue {
17 ipnsv := new(ipNetSliceValue)
18 ipnsv.value = p
19 *ipnsv.value = val
20 return ipnsv
21}
22
23// Set converts, and assigns, the comma-separated IPNet argument string representation as the []net.IPNet value of this flag.
24// If Set is called on a flag that already has a []net.IPNet assigned, the newly converted values will be appended.

Callers 4

IPNetSliceVarMethod · 0.85
IPNetSliceVarPMethod · 0.85
IPNetSliceVarFunction · 0.85
IPNetSliceVarPFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…