Documentation
¶
Index ¶
Constants ¶
View Source
const Day = 24 * time.Hour
Day is 24 hours.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bytes ¶
type Bytes int64
Bytes represents the size in bytes.
func (*Bytes) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler.
It is needed for Kong: https://pkg.go.dev/github.com/alecthomas/kong#readme-custom-decoders-mappers
type Duration ¶
Duration is a wrapper around time.Duration that supports parsing days.
func (*Duration) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler.
It is needed for Kong: https://pkg.go.dev/github.com/alecthomas/kong#readme-custom-decoders-mappers
Click to show internal directories.
Click to hide internal directories.