Documentation
¶
Index ¶
- Variables
- type ConfigFile
- func (c *ConfigFile) AddOption(section, option, value string) bool
- func (c *ConfigFile) AddSection(section string) bool
- func (c *ConfigFile) GetBool(section, option string) (bool, error)
- func (c *ConfigFile) GetFloat(section, option string) (float64, error)
- func (c *ConfigFile) GetInt(section, option string) (int, error)
- func (c *ConfigFile) GetInt64(section, option string) (int64, error)
- func (c *ConfigFile) GetRawString(section, option string) (string, error)
- func (c *ConfigFile) GetSection(section string) ([]string, error)
- func (c *ConfigFile) GetString(section, option string) (string, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ConfigFile ¶
type ConfigFile struct {
// contains filtered or unexported fields
}
func ReadConfigFile ¶
func ReadConfigFile(f string) (*ConfigFile, error)
func (*ConfigFile) AddOption ¶
func (c *ConfigFile) AddOption(section, option, value string) bool
func (*ConfigFile) AddSection ¶
func (c *ConfigFile) AddSection(section string) bool
func (*ConfigFile) GetFloat ¶
func (c *ConfigFile) GetFloat(section, option string) (float64, error)
func (*ConfigFile) GetRawString ¶
func (c *ConfigFile) GetRawString(section, option string) (string, error)
func (*ConfigFile) GetSection ¶
func (c *ConfigFile) GetSection(section string) ([]string, error)
Click to show internal directories.
Click to hide internal directories.