Documentation
¶
Index ¶
- type Config
- func (cfg *Config) Get(key string) interface{}
- func (cfg *Config) GetBool(key string) bool
- func (cfg *Config) GetDuration(key string) time.Duration
- func (cfg *Config) GetFloat64(key string) float64
- func (cfg *Config) GetInt(key string) int
- func (cfg *Config) GetString(key string) string
- func (cfg *Config) GetStringMap(key string) map[string]interface{}
- func (cfg *Config) GetStringMapString(key string) map[string]string
- func (cfg *Config) GetStringSlice(key string) []string
- func (cfg *Config) GetTime(key string) time.Time
- func (cfg *Config) IsSet(key string) bool
- func (cfg *Config) Set(key string, value interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { }
Configuration wrapper on top of simple environment variables or spf13/viper
func (*Config) GetFloat64 ¶
func (*Config) GetStringMap ¶
func (*Config) GetStringMapString ¶
func (*Config) GetStringSlice ¶
Click to show internal directories.
Click to hide internal directories.