Versions in this module Expand all Collapse all v0 v0.6.1 Jul 31, 2023 v0.0.4 Jul 31, 2023 Changes in this version + type Config interface + Get func(key string) (val interface{}, ok bool) + func NewDummyConfig() Config + type Container interface + AddPriorSource func(src Config) error + func NewConfigContainer() Container + type DefaultConfig interface + Get func(key string, def interface{}) interface{} + func NewDefaultConfig(c Config) DefaultConfig + type OptionOnce struct + OptMap map[string]struct{} + func NewOptionOnce() *OptionOnce + func (o *OptionOnce) OnceOrPanic() + type RichTypeConfig interface + GetBool func(key string) (val, ok bool) + GetDuration func(key string) (val time.Duration, ok bool) + GetFloat func(key string) (val float64, ok bool) + GetInt func(key string) (val int, ok bool) + GetInt64 func(key string) (val int64, ok bool) + GetString func(key string) (val string, ok bool) + func NewRichTypeConfig(c Config) RichTypeConfig + type RichTypeDefaultConfig interface + GetBool func(key string, def bool) bool + GetDuration func(key string, def time.Duration) time.Duration + GetFloat func(key string, def float64) float64 + GetInt func(key string, def int) int + GetInt64 func(key string, def int64) int64 + GetString func(key, def string) string + func NewRichTypeDefaultConfig(rtc RichTypeConfig) RichTypeDefaultConfig