Documentation ¶
Index ¶
- Variables
- func LoadFiles(inifiles []string) (*ini.File, error)
- func NewIni(inifiles []string) (parserIni.Ini, error)
- func NewParser() parser.Parser
- type Parser
- func (parser *Parser) Close() error
- func (parser *Parser) GetInt64Value(section string, key string) (int64, error)
- func (parser *Parser) GetInt64ValueWithDefault(section string, key string, defaultValue int64) int64
- func (parser *Parser) GetSections() ([]string, error)
- func (parser *Parser) GetValue(section string, key string) (string, error)
- func (parser *Parser) GetValueWithDefault(section string, key string, defaultValue string) string
- func (parser *Parser) ParseFile(confFile string, v interface{}) error
- func (parser *Parser) ParseFiles(files []string, v interface{}) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotImplementedYet = errors.New("Not implemented yet")
)
Functions ¶
Types ¶
type Parser ¶
type Parser struct {
Config *ini.File
}
Parser implementation based on goini framework framework
func (*Parser) GetInt64Value ¶
GetInt64Value retrieves the section value as int from the given Ini
func (*Parser) GetInt64ValueWithDefault ¶
func (parser *Parser) GetInt64ValueWithDefault(section string, key string, defaultValue int64) int64
GetInt64ValueWithDefault retrieves the given [section]/key value
func (*Parser) GetSections ¶
GetSections retrieves all sections
func (*Parser) GetValueWithDefault ¶
GetValueWithDefault retrieves the given [section]/key value
func (*Parser) ParseFiles ¶
ParseFiles parses a given set of files
Click to show internal directories.
Click to hide internal directories.