Documentation ¶
Overview ¶
Package toml adds support to marshal and unmarshal types not in the official TOML spec.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Duration ¶
Duration is a TOML wrapper type for time.Duration.
func (Duration) MarshalText ¶
MarshalText converts a duration to a string for decoding toml
func (*Duration) UnmarshalText ¶
UnmarshalText parses a TOML value into a duration value.
type Size ¶
type Size uint64
Size represents a TOML parsable file size. Users can specify size using "k" or "K" for kibibytes, "m" or "M" for mebibytes, and "g" or "G" for gibibytes. If a size suffix isn't specified then bytes are assumed.
func (*Size) UnmarshalText ¶
UnmarshalText parses a byte size from text.
Click to show internal directories.
Click to hide internal directories.