Documentation ¶
Index ¶
- type Config
- func (cfg *Config) BoolValue(key string) (boolval bool)
- func (cfg *Config) GetAll() (all map[string]string)
- func (cfg *Config) IntValue(key string) (intval int)
- func (cfg *Config) Reset(key string)
- func (cfg *Config) Set(key string, value string)
- func (cfg *Config) StringValue(key string) (value string)
- func (cfg *Config) Uint32Value(key string) (uint32val uint32)
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
}
func New ¶
Create a new Config using cfgMap as the intial internal config map. If cfgMap is nil, ConfigWithMap will create a new config map.
func (*Config) StringValue ¶
Get the value of a specific config key encoded as a string
func (*Config) Uint32Value ¶
Get the value of a specific config key as a uint32
Click to show internal directories.
Click to hide internal directories.