Versions in this module Expand all Collapse all v0 v0.1.1 Jul 7, 2022 v0.1.0 Apr 26, 2022 Changes in this version + func RegisterDecoder(fileType FileType, decoder Decoder) + type Config struct + func New() *Config + func (c *Config) Get(key string) interface{} + func (c *Config) GetBool(key string) bool + func (c *Config) GetDuration(key string) time.Duration + func (c *Config) GetFloat64(key string) float64 + func (c *Config) GetInt(key string) int + func (c *Config) GetIntSlice(key string) []int + func (c *Config) GetString(key string) string + func (c *Config) GetStringMap(key string) map[string]interface{} + func (c *Config) GetStringMapString(key string) map[string]string + func (c *Config) GetStringSlice(key string) []string + func (c *Config) GetTime(key string) time.Time + func (c *Config) LoadConfig() error + func (c *Config) SetConfigFile(file string) + type Decoder interface + Decode func([]byte, map[string]interface{}) error + type FileType uint8 + const EnvFileType + const IniFileType + const JsonFileType + const TomlFileType + const UnknownFileType + const YamlFileType