Documentation
¶
Index ¶
- func NewBase64Bytes(val []byte, p *[]byte) *base64BytesValue
- func NewDuration(val time.Duration, p *time.Duration) *durationValue
- func NewHexBytes(val []byte, p *[]byte) *hexBytesValue
- func NewIP(val net.IP, p *net.IP) *ipValue
- func NewIPMask(val net.IPMask, p *net.IPMask) *ipMaskValue
- func NewIPNet(val net.IPNet, p *net.IPNet) *ipNetValue
- func NewIPSlice(val []net.IP, p *[]net.IP) *ipSliceValue
- func NewInt(p *int) *intValue
- func NewRawBytes(val []byte, p *[]byte) *rawBytesValue
- func NewString(p *string) *stringValue
- func ParseIPv4Mask(s string) net.IPMask
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBase64Bytes ¶ added in v0.12.0
NewBase64Bytes creates a pflag.Value that parses base64-encoded textual input.
func NewDuration ¶
NewDuration creates a new durationValue.
func NewHexBytes ¶ added in v0.12.0
NewHexBytes creates a pflag.Value that parses hex-encoded textual input.
func NewRawBytes ¶ added in v0.12.0
NewRawBytes creates a pflag.Value that keeps raw textual bytes semantics.
func ParseIPv4Mask ¶ added in v0.12.0
ParseIPv4Mask parses masks written as dotted decimal or hex bytes (e.g. ffffff00).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.