Documentation
¶
Index ¶
- type Config
- func (config *Config) GetBool(key string) bool
- func (config *Config) GetBoolWithDefault(key string, defaultVal bool) bool
- func (config *Config) GetInt(key string) int
- func (config *Config) GetMap(key string) map[string]interface{}
- func (config *Config) GetMapString(key string) map[string]string
- func (config *Config) GetString(key string) string
- func (config *Config) GetStringWithDefault(key string, defaultVal string) string
- func (config *Config) IsSet(key string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config sdk for getting key values from settings file
func (*Config) GetBoolWithDefault ¶
GetBoolWithDefault returns boolean value set for the given key, if not set returns the given defaultVal
func (*Config) GetMap ¶
GetMap returns the value associated with the given key as a map of interfaces
func (*Config) GetMapString ¶
GetMapString returns the value associated with the given key as a map of strings
func (*Config) GetStringWithDefault ¶
GetStringWithDefault return string value set for the given key, if not set returns the given defaultVal
Click to show internal directories.
Click to hide internal directories.