Documentation ¶
Index ¶
- type Config
- type MapConfig
- func (cfg *MapConfig) Get(key string) interface{}
- func (cfg *MapConfig) GetBool(key string) bool
- func (cfg *MapConfig) GetConfig(key string) Config
- func (cfg *MapConfig) GetFloat64(key string) float64
- func (cfg *MapConfig) GetInt(key string) int
- func (cfg *MapConfig) GetMap(key string) map[string]interface{}
- func (cfg *MapConfig) GetMapString(key string) map[string]string
- func (cfg *MapConfig) GetString(key string) string
- func (cfg *MapConfig) GetStringSlice(key string) []string
- func (cfg *MapConfig) GetTime(key string) time.Time
- func (cfg *MapConfig) IsSet(key string) bool
- func (cfg *MapConfig) Set(key string, value interface{})
- func (cfg *MapConfig) SetDefault(key string, value interface{})
- func (cfg *MapConfig) SetRequired(key string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config interface { Get(key string) interface{} GetBool(key string) bool GetFloat64(key string) float64 GetInt(key string) int GetString(key string) string GetStringSlice(key string) []string GetTime(key string) time.Time GetMap(key string) map[string]interface{} GetMapString(key string) map[string]string GetConfig(key string) Config IsSet(key string) bool Set(key string, value interface{}) SetDefault(key string, value interface{}) }
type MapConfig ¶
type MapConfig struct {
// contains filtered or unexported fields
}
func NewMapConfig ¶
func ReadMapConfigFromFile ¶
func (*MapConfig) GetFloat64 ¶
func (*MapConfig) GetStringSlice ¶
func (*MapConfig) SetDefault ¶
func (*MapConfig) SetRequired ¶
Click to show internal directories.
Click to hide internal directories.