Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Configor ¶
type Configor struct {
Options *Options
}
Configor represents configuration loader
func (*Configor) ApplyEnvOverrides ¶
ApplyEnvOverrides apple env overrides
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 ¶
type FileMode uint32
FileMode represents file mode
func (FileMode) MarshalText ¶
MarshalText convert a file mode to a string for decoding toml
func (*FileMode) UnmarshalText ¶
UnmarshalText parses file mode from text
type Option ¶
type Option func(*Options)
Option represents func to set options
func LoadFromEnv ¶ added in v1.1.0
LoadFromEnv represents wether load configuration from env args
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.