package
module
Version:
v0.0.0-...-7c37c58
Opens a new window with list of versions in this module.
Published: Feb 25, 2015
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Ini
Package ini is a parser for ini files implemented using the 'text/scanner' package.
It can also parse the git configuration file format.
Documentation
Documentation is available at godoc.org
License
This code is free to use and distribute, under the MIT
license.
Documentation
¶
Package ini is a parser for ini files implemented using the 'text/scanner' package.
Ini structure contains the data and a RWMutex for concurrency safety
Instantiates a new Ini structure
Get() returns the value associated to section and key. If key is not in a section, use ""
If key does not exist, Get() returns an empty string.
Has() returns true if the ini structure has corresponding value in section/key
ReadFrom() read the ini configuration contained in the Reader r until EOF.
func (ini *Ini) Set(section, key, value string)
Set() sets the value of a key for a given section.
WriteTo() writes the configuration in an ini format to the Writer writer.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.