Documentation ¶
Index ¶
- Variables
- func Get(key string, out any) error
- func GetSection(section Section) error
- func Load(confFile string, overrides map[string]any) error
- func LoadMap(m map[string]any) error
- func LoadReader(reader io.Reader, overrides map[string]any) error
- type Defaulter
- type Section
- type Validator
- type Wrapper
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrConfigNotLoaded = errors.New("config not loaded")
Functions ¶
func Get ¶
Get populates out with the configuration at the given key. Populate out with default values before calling this function to ensure sane defaults if there are any.
Types ¶
type Wrapper ¶ added in v0.15.0
type Wrapper struct {
// contains filtered or unexported fields
}
func Global ¶ added in v0.15.0
func Global() *Wrapper
Global returns the default global config wrapper.
func WrapperFromReader ¶ added in v0.15.0
func (*Wrapper) GetSection ¶ added in v0.15.0
Click to show internal directories.
Click to hide internal directories.