Documentation ¶
Index ¶
- type IniFile
- func (i IniFile) AddSection(name string)
- func (i IniFile) GetSection(name string) (map[string]string, error)
- func (i IniFile) GetValue(section, key string) (string, error)
- func (i IniFile) HasKey(section, key string) bool
- func (i IniFile) HasSection(name string) bool
- func (i IniFile) Merge(src IniFile)
- func (i IniFile) SetValue(section, key, value string, create bool) error
- func (i IniFile) ToString() string
- type Policy
- type Section
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IniFile ¶
IniFile abstraction
func (IniFile) AddSection ¶
AddSection extends IniFile with new sections. If section exists method does nothing
func (IniFile) GetSection ¶
GetSection returns articular section of the config file
func (IniFile) HasSection ¶
Click to show internal directories.
Click to hide internal directories.