Versions in this module Expand all Collapse all v0 v0.0.1 May 6, 2022 Changes in this version + func Subscribe(ch chan<- uintptr) + func Unsubscribe(ch chan<- uintptr) + type Addr = NetIP[netip.Addr] + type AddrPort = NetIP[netip.AddrPort] + type AddrPorts = NetIPs[netip.AddrPort] + type Addrs = NetIPs[netip.Addr] + type Bool struct + func NewBool(v bool) *Bool + func (opt *Bool) Set(s string) error + func (opt *Bool) Store(v bool) error + func (opt *Bool) UnmarshalJSON(text []byte) error + func (opt *Bool) UnmarshalText(text []byte) error + func (opt Bool) IsBoolFlag() bool + func (opt Bool) MarshalJSON() ([]byte, error) + func (opt Bool) MarshalText() ([]byte, error) + func (opt Bool) MarshalYAML() (interface{}, error) + func (opt Bool) String() string + func (opt Bool) Value() bool + type Duration struct + func LimitedDuration(v, min, max time.Duration) *Duration + func MustParseDuration(s string) *Duration + func NewDuration(v time.Duration) *Duration + func (opt *Duration) Set(s string) error + func (opt *Duration) Store(v time.Duration) error + func (opt *Duration) UnmarshalJSON(text []byte) error + func (opt *Duration) UnmarshalText(text []byte) error + func (opt Duration) MarshalJSON() ([]byte, error) + func (opt Duration) MarshalText() ([]byte, error) + func (opt Duration) MarshalYAML() (interface{}, error) + func (opt Duration) String() string + func (opt Duration) Value() time.Duration + type Env map[string]func(string) error + func (env Env) Set(args ...string) error + type NetIP struct + func MustParseAddr(s string) *NetIP[netip.Addr] + func MustParseAddrPort(s string) *NetIP[netip.AddrPort] + func MustParsePrefix(s string) *NetIP[netip.Prefix] + func (opt *NetIP[T]) Set(s string) error + func (opt *NetIP[T]) UnmarshalJSON(text []byte) error + func (opt *NetIP[T]) UnmarshalText(text []byte) error + func (opt NetIP[T]) Format(f fmt.State, verb rune) + func (opt NetIP[T]) MarshalJSON() ([]byte, error) + func (opt NetIP[T]) MarshalText() ([]byte, error) + func (opt NetIP[T]) MarshalYAML() (interface{}, error) + func (opt NetIP[T]) String() string + func (opt NetIP[T]) Value() T + type NetIPs struct + func NewAddrPorts(v []netip.AddrPort) *NetIPs[netip.AddrPort] + func NewAddrs(v []netip.Addr) *NetIPs[netip.Addr] + func NewPrefixes(v []netip.Prefix) *NetIPs[netip.Prefix] + func (opt *NetIPs[T]) Store(v []T) error + func (opt *NetIPs[T]) UnmarshalTOML(input interface{}) error + func (opt *NetIPs[T]) UnmarshalYAML(unmarshal func(interface{}) error) error + func (opt NetIPs[T]) MarshalJSON() ([]byte, error) + func (opt NetIPs[T]) MarshalYAML() (interface{}, error) + func (opt NetIPs[T]) Value() []T + type Number struct + func LimitedNumber(v, min, max T) *Number[T] + func NewNumber(v T) *Number[T] + func (opt *Number[T]) Set(s string) error + func (opt *Number[T]) Store(v T) error + func (opt *Number[T]) UnmarshalJSON(text []byte) error + func (opt *Number[T]) UnmarshalText(text []byte) error + func (opt Number[T]) MarshalJSON() ([]byte, error) + func (opt Number[T]) MarshalText() ([]byte, error) + func (opt Number[T]) MarshalYAML() (interface{}, error) + func (opt Number[T]) String() string + func (opt Number[T]) Value() T + type Numbers struct + func NewNumbers(v []T) *Numbers[T] + func (opt *Numbers[T]) Store(v []T) error + func (opt *Numbers[T]) UnmarshalTOML(input interface{}) error + func (opt *Numbers[T]) UnmarshalYAML(unmarshal func(interface{}) error) error + func (opt Numbers[T]) MarshalJSON() ([]byte, error) + func (opt Numbers[T]) MarshalText() ([]byte, error) + func (opt Numbers[T]) MarshalYAML() (interface{}, error) + func (opt Numbers[T]) String() string + func (opt Numbers[T]) Value() []T + type Numeric interface + type Prefix = NetIP[netip.Prefix] + type Prefixes = NetIPs[netip.Prefix] + type String struct + func Alias(name T, aka ...T) *String[T] + func NewString(v T) *String[T] + func (opt *String[T]) Set(s string) error + func (opt *String[T]) Store(v T) error + func (opt *String[T]) UnmarshalJSON(text []byte) error + func (opt *String[T]) UnmarshalText(text []byte) error + func (opt String[T]) MarshalJSON() ([]byte, error) + func (opt String[T]) MarshalText() ([]byte, error) + func (opt String[T]) MarshalYAML() (interface{}, error) + func (opt String[T]) String() string + func (opt String[T]) Value() T + type Strings struct + func NewStrings(v []T) *Strings[T] + func (opt *Strings[T]) Store(v []T) error + func (opt *Strings[T]) UnmarshalTOML(input interface{}) error + func (opt *Strings[T]) UnmarshalYAML(unmarshal func(interface{}) error) error + func (opt Strings[T]) MarshalJSON() ([]byte, error) + func (opt Strings[T]) MarshalText() ([]byte, error) + func (opt Strings[T]) MarshalYAML() (interface{}, error) + func (opt Strings[T]) String() string + func (opt Strings[T]) Value() []T + type Time struct + func LimitedTime(v, min, max time.Time) *Time + func MustParseLimitedTime(sv, smin, smax string) *Time + func MustParseTime(s string) *Time + func NewTime(v time.Time) *Time + func (opt *Time) Set(s string) error + func (opt *Time) Store(v time.Time) error + func (opt *Time) UnmarshalJSON(text []byte) error + func (opt *Time) UnmarshalText(text []byte) error + func (opt Time) MarshalJSON() ([]byte, error) + func (opt Time) MarshalText() ([]byte, error) + func (opt Time) MarshalYAML() (interface{}, error) + func (opt Time) String() string + func (opt Time) Value() time.Time + type URL struct + func MustParseURL(s string) *URL + func (opt *URL) Set(s string) error + func (opt *URL) UnmarshalJSON(text []byte) error + func (opt *URL) UnmarshalText(text []byte) error + func (opt URL) MarshalJSON() ([]byte, error) + func (opt URL) MarshalText() ([]byte, error) + func (opt URL) MarshalYAML() (interface{}, error) + func (opt URL) String() string + func (opt URL) Value() url.URL