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 FileMode ¶ added in v1.6.0
type FileMode uint32
func (FileMode) MarshalText ¶ added in v1.6.0
func (*FileMode) UnmarshalText ¶ added in v1.6.0
type Size ¶
type Size uint64
Size represents a TOML parseable 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.