Documentation ¶
Index ¶
- Variables
- func Get(key string, out interface{}) error
- func GetSection(section Section) error
- func Load(confFile string, overrides map[string]interface{}) error
- func LoadAndWatch(ctx context.Context, confFile string, overrides map[string]interface{}) error
- func LoadMap(m map[string]interface{}) error
- func LoadReader(reader io.Reader) error
- type Defaulter
- type Section
- type Validator
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.
func LoadAndWatch ¶
LoadAndWatch automatically reloads configuration if the config file changes.
func LoadReader ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.