...
Package toml
Overview ▹
Index ▹
type Duration ¶
Duration is a TOML wrapper type for time.Duration.
type Duration time.Duration
func (Duration) MarshalText ¶
func (d Duration) MarshalText() (text []byte, err error)
MarshalText converts a duration to a string for decoding toml
func (Duration) String ¶
func (d Duration) String() string
String returns the string representation of the duration.
func (*Duration) UnmarshalText ¶
func (d *Duration) UnmarshalText(text []byte) error
UnmarshalText parses a TOML value into a duration value.
type Size ¶
Size represents a TOML parseable file size. Users can specify size using "m" for megabytes and "g" for gigabytes.
type Size int
func (*Size) UnmarshalText ¶
func (s *Size) UnmarshalText(text []byte) error
UnmarshalText parses a byte size from text.