Documentation ¶
Overview ¶
Package ini provides trivial parsing of .INI format files.
Index ¶
- type Config
- func (c *Config) AddComment(sect, comment string)
- func (c *Config) Comments(section string) []string
- func (c *Config) Delete(section, key string)
- func (c *Config) Get(section, key string) string
- func (c *Config) OptionMap(section string) map[string]string
- func (c *Config) Options(section string) []string
- func (c *Config) Sections() []string
- func (c *Config) Set(sectionName, key, value string)
- func (c *Config) Write(out io.Writer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config is a parsed INI format file.
func (*Config) AddComment ¶
AddComments appends the comment to the list of comments for the section.
func (*Config) Comments ¶
Comments returns the list of comments in a given section. For the empty string, returns the file comments.
func (*Config) Get ¶
Get gets the value from the specified section and key name, or the empty string if either the section or the key is missing.
Click to show internal directories.
Click to hide internal directories.