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

Function newIPSliceValue

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

Source from the content-addressed store, hash-verified

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

Callers 4

IPSliceVarMethod · 0.85
IPSliceVarPMethod · 0.85
IPSliceVarFunction · 0.85
IPSliceVarPFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected