Documentation ¶
Index ¶
- Constants
- func SaveConfig(c *Config, filename string) (err error)
- type Config
- func (c *Config) AppendConfigFiles(files ...string) error
- func (c *Config) Bool(key string) (bool, error)
- func (c *Config) Del(key string) bool
- func (c *Config) DelGroup(group string) bool
- func (c *Config) Float64(key string) (float64, error)
- func (c *Config) Get(key string) (string, error)
- func (c *Config) GetGroup(group string) (map[string]string, error)
- func (c *Config) Int(key string) (int, error)
- func (c *Config) Int64(key string) (int64, error)
- func (c *Config) Qbool(key string, def bool) bool
- func (c *Config) Qfloat64(key string, def float64) float64
- func (c *Config) Qint(key string, def int) int
- func (c *Config) Qint64(key string, def int64) int64
- func (c *Config) Reload() (err error)
- func (c *Config) Set(group, key, val string)
Constants ¶
View Source
const ( DEFAULT_GROUP = "default" //group未找到 GROUP_NOT_FOUND = iota //选项未找到 KEY_NOT_FOUND //组错误 GROUP_FAIL //解析失败 COULD_NOT_PARSE )
Variables ¶
This section is empty.
Functions ¶
func SaveConfig ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.