Documentation ¶
Index ¶
- type Config
- func (c *Config) LoadFromFile(path string) error
- func (c *Config) Set(key string, val interface{})
- func (c *Config) ValBool(key string) (bool, error)
- func (c *Config) ValFloat64(key string) (float64, error)
- func (c *Config) ValInt64(key string) (int64, error)
- func (c *Config) ValString(key string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
data struct to hold a group of config parameters, with key type default as string and value store in string format
CmdArgs will hold all the key-value parameters that were given in command line
func (*Config) LoadFromFile ¶
read all the config key-value pair from config file defined by path
Click to show internal directories.
Click to hide internal directories.