values

package
v0.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBase64Bytes added in v0.12.0

func NewBase64Bytes(val []byte, p *[]byte) *base64BytesValue

NewBase64Bytes creates a pflag.Value that parses base64-encoded textual input.

func NewDuration

func NewDuration(val time.Duration, p *time.Duration) *durationValue

NewDuration creates a new durationValue.

func NewHexBytes added in v0.12.0

func NewHexBytes(val []byte, p *[]byte) *hexBytesValue

NewHexBytes creates a pflag.Value that parses hex-encoded textual input.

func NewIP added in v0.12.0

func NewIP(val net.IP, p *net.IP) *ipValue

func NewIPMask added in v0.12.0

func NewIPMask(val net.IPMask, p *net.IPMask) *ipMaskValue

func NewIPNet added in v0.12.0

func NewIPNet(val net.IPNet, p *net.IPNet) *ipNetValue

func NewIPSlice added in v0.12.0

func NewIPSlice(val []net.IP, p *[]net.IP) *ipSliceValue

func NewInt

func NewInt(p *int) *intValue

func NewRawBytes added in v0.12.0

func NewRawBytes(val []byte, p *[]byte) *rawBytesValue

NewRawBytes creates a pflag.Value that keeps raw textual bytes semantics.

func NewString

func NewString(p *string) *stringValue

func ParseIPv4Mask added in v0.12.0

func ParseIPv4Mask(s string) net.IPMask

ParseIPv4Mask parses masks written as dotted decimal or hex bytes (e.g. ffffff00).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL