Documentation
¶
Index ¶
- Constants
- func CheckErr(err error) string
- type Config
- func (c *Config) DeleteValue(section, name string) bool
- func (c *Config) DeleteValueToFile(section, name string) bool
- func (c *Config) GetAllSetion() map[string]map[string]string
- func (c *Config) GetValue(section, name string) string
- func (c *Config) SetValue(section, key, value string)
- func (c *Config) SetValueToFile(section, key, value string)
Constants ¶
View Source
const ( RENAME = "rename" REMOVE = "remove" CHANGE = "change" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Conflist map[string]map[string]string //configuration information slice
// contains filtered or unexported fields
}
func (*Config) DeleteValue ¶
Delete the corresponding key values 删除相应的键值
func (*Config) DeleteValueToFile ¶
delete the corresponding key value and update the configuration file at the same time 删除相应的键值,同时更新配置文件 暂未实现,等待后续
func (*Config) GetAllSetion ¶
获取所有配置项 List all the configuration file
func (*Config) SetValue ¶
Set the corresponding value of the key value, if not add, if there is a key change 设置键值的对应值,如果没有添加,如果有键更改
func (*Config) SetValueToFile ¶
Update the configuration file at the same time 更新内存的时候,同时更新配置文件 暂未实现,等待后续
Click to show internal directories.
Click to hide internal directories.