Versions in this module Expand all Collapse all v1 v1.0.2 Sep 20, 2019 v1.0.1 Sep 20, 2019 Changes in this version + func FlattenJSON(input map[string]interface{}, namespace string) (map[string]string, error) + type CLI struct + func NewCLI(context *cli.Context, useDefaults bool) *CLI + func (this *CLI) Load() (map[string]string, error) + type CachedLoader struct + func NewCachedLoader(provider Provider) *CachedLoader + func (this *CachedLoader) Invalidate() + func (this *CachedLoader) Load() (map[string]string, error) + type Config struct + Providers []Provider + Validate func(map[string]string) error + func NewConfig(providers []Provider) *Config + func (this *Config) Bool(key string) (bool, error) + func (this *Config) BoolOr(key string, alt bool) (bool, error) + func (this *Config) Float(key string) (float64, error) + func (this *Config) FloatOr(key string, alt float64) (float64, error) + func (this *Config) Int(key string) (int, error) + func (this *Config) IntOr(key string, alt int) (int, error) + func (this *Config) Load() error + func (this *Config) Settings() (map[string]string, error) + func (this *Config) String(key string) (string, error) + func (this *Config) StringOr(key, alt string) (string, error) + type Environment struct + func NewEnvironment(mappings map[string]string) *Environment + func (this *Environment) Load() (map[string]string, error) + type INIFile struct + func NewINIFile(path string) *INIFile + func (this *INIFile) Load() (map[string]string, error) + type JSONFile struct + func NewJSONFile(path string) *JSONFile + func (this *JSONFile) Load() (map[string]string, error) + type OnceLoader struct + func NewOnceLoader(provider Provider) *OnceLoader + func (this *OnceLoader) Load() (map[string]string, error) + type Provider interface + Load func() (map[string]string, error) + type Resolver struct + func NewResolver(provider Provider, mappings map[string]string) *Resolver + func (this *Resolver) Load() (map[string]string, error) + type Static struct + func NewStatic(settings map[string]string) *Static + func (this *Static) Load() (map[string]string, error) + func (this *Static) Set(key, val string) + type TOMLFile struct + func NewTOMLFile(path string) *TOMLFile + func (this *TOMLFile) Load() (map[string]string, error) + type YAMLFile struct + func NewYAMLFile(path string) *YAMLFile + func (this *YAMLFile) Load() (map[string]string, error)