Versions in this module Expand all Collapse all v0 v0.1.0 Nov 27, 2023 Changes in this version + func ParseBytesFloat64(s string) (float64, error) + type Boolean bool + func ParseBoolean(s string) (Boolean, error) + func (b *Boolean) Set(s string) error + func (b *Boolean) UnmarshalJSON(j []byte) error + func (b *Boolean) UnmarshalText(t []byte) error + func (b *Boolean) UnmarshalYAML(y *yaml.Node) error + func (b Boolean) Format(w fmt.State, v rune) + func (b Boolean) Get() any + func (b Boolean) GoString() string + func (b Boolean) MarshalJSON() ([]byte, error) + func (b Boolean) MarshalText() ([]byte, error) + func (b Boolean) MarshalYAML() (any, error) + func (b Boolean) String() string + type Bytes uint64 + const B + const GB + const GiB + const KB + const KiB + const MB + const MiB + const PB + const PiB + const TB + const TiB + func ParseBytes(s string) (Bytes, error) + func (b *Bytes) Set(s string) error + func (b *Bytes) UnmarshalJSON(j []byte) error + func (b *Bytes) UnmarshalText(t []byte) error + func (b *Bytes) UnmarshalYAML(y *yaml.Node) error + func (b Bytes) Format(w fmt.State, v rune) + func (b Bytes) Get() any + func (b Bytes) GoString() string + func (b Bytes) MarshalJSON() ([]byte, error) + func (b Bytes) MarshalText() ([]byte, error) + func (b Bytes) MarshalYAML() (any, error) + func (b Bytes) String() string + type Count float64 + const G + const K + const M + const P + const T + func ParseCount(s string) (Count, error) + func (c *Count) Set(s string) error + func (c *Count) UnmarshalJSON(b []byte) error + func (c *Count) UnmarshalText(b []byte) error + func (c *Count) UnmarshalYAML(y *yaml.Node) error + func (c Count) Format(w fmt.State, v rune) + func (c Count) Get() any + func (c Count) GoString() string + func (c Count) MarshalJSON() ([]byte, error) + func (c Count) MarshalText() ([]byte, error) + func (c Count) MarshalYAML() (any, error) + func (c Count) String() string + type Duration time.Duration + const Day + const Hour + const Microsecond + const Millisecond + const Minute + const Nanosecond + const Second + const Week + func ParseDuration(s string) (Duration, error) + func ParseDurationUntil(s string, now time.Time) (Duration, error) + func (d *Duration) Set(s string) error + func (d *Duration) UnmarshalJSON(b []byte) error + func (d *Duration) UnmarshalText(b []byte) error + func (d *Duration) UnmarshalYAML(y *yaml.Node) error + func (d Duration) Days() int + func (d Duration) Format(w fmt.State, v rune) + func (d Duration) Formatter(now time.Time) fmt.Formatter + func (d Duration) Get() any + func (d Duration) GoString() string + func (d Duration) Hours() int + func (d Duration) MarshalJSON() ([]byte, error) + func (d Duration) MarshalText() ([]byte, error) + func (d Duration) MarshalYAML() (any, error) + func (d Duration) Microseconds() int + func (d Duration) Milliseconds() int + func (d Duration) Minutes() int + func (d Duration) Months(until time.Time) int + func (d Duration) Nanoseconds() int + func (d Duration) Seconds() int + func (d Duration) String() string + func (d Duration) Text(now time.Time) string + func (d Duration) Weeks() int + func (d Duration) Years(until time.Time) int + type Number float64 + func ParseNumber(s string) (Number, error) + func (n *Number) Set(s string) error + func (n *Number) UnmarshalJSON(b []byte) error + func (n *Number) UnmarshalText(b []byte) error + func (n *Number) UnmarshalYAML(y *yaml.Node) error + func (n Number) Format(w fmt.State, v rune) + func (n Number) Get() any + func (n Number) GoString() string + func (n Number) MarshalJSON() ([]byte, error) + func (n Number) MarshalText() ([]byte, error) + func (n Number) MarshalYAML() (any, error) + func (n Number) String() string + type Path string + func (p *Path) Set(s string) error + func (p *Path) UnmarshalText(b []byte) error + func (p Path) Get() any + func (p Path) Resolve() (string, error) + func (p Path) String() string + type Rate float64 + const PerDay + const PerHour + const PerMicrosecond + const PerMillisecond + const PerMinute + const PerNanosecond + const PerSecond + const PerWeek + func ParseRate(s string) (Rate, error) + func (r *Rate) Set(s string) error + func (r *Rate) UnmarshalJSON(b []byte) error + func (r *Rate) UnmarshalText(b []byte) error + func (r *Rate) UnmarshalYAML(y *yaml.Node) error + func (r Rate) Format(w fmt.State, v rune) + func (r Rate) Formatter(d Duration) fmt.Formatter + func (r Rate) Get() any + func (r Rate) GoString() string + func (r Rate) MarshalJSON() ([]byte, error) + func (r Rate) MarshalText() ([]byte, error) + func (r Rate) MarshalYAML() (any, error) + func (r Rate) String() string + func (r Rate) Text(d Duration) string + type Ratio float64 + func ParseRatio(s string) (Ratio, error) + func (r *Ratio) Set(s string) error + func (r *Ratio) UnmarshalJSON(b []byte) error + func (r *Ratio) UnmarshalText(b []byte) error + func (r *Ratio) UnmarshalYAML(y *yaml.Node) error + func (r Ratio) Format(w fmt.State, v rune) + func (r Ratio) Formatter(precision int) fmt.Formatter + func (r Ratio) Get() any + func (r Ratio) GoString() string + func (r Ratio) MarshalJSON() ([]byte, error) + func (r Ratio) MarshalText() ([]byte, error) + func (r Ratio) MarshalYAML() (any, error) + func (r Ratio) String() string + func (r Ratio) Text(precision int) string + type Time time.Time + func ParseTime(s string) (Time, error) + func ParseTimeAt(s string, now time.Time) (Time, error) + func (t *Time) Set(s string) error + func (t *Time) UnmarshalJSON(b []byte) error + func (t *Time) UnmarshalText(b []byte) error + func (t *Time) UnmarshalYAML(y *yaml.Node) error + func (t Time) Format(w fmt.State, v rune) + func (t Time) Formatter(now time.Time) fmt.Formatter + func (t Time) Get() any + func (t Time) GoString() string + func (t Time) IsZero() bool + func (t Time) MarshalJSON() ([]byte, error) + func (t Time) MarshalText() ([]byte, error) + func (t Time) MarshalYAML() (any, error) + func (t Time) String() string + func (t Time) Text(now time.Time) string