inigo

package module
v0.0.0-...-84a8b9c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2015 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

inigo

Go INI Parser (with inheritance)

Documentation

Index

Constants

View Source
const (
	LINE_BREAK        = "\n"
	SECTION_SEPERATOR = ":"
	KEY_SEPERATOR     = "."
)
View Source
const (
	REGEX_SECTION             = `\[(.*)\]`
	REGEX_KEY_VALUE           = `(\S*)=(.*)`
	REGEX_INHERITANCE_SECTION = `(.*)(?:\:(.*))`
)
View Source
const (
	PARSE_PROCESS_INIT      = 0
	PARSE_PROCESS_SECTION   = 1
	PARSE_PROCESS_KEY_VALUE = 2
)
View Source
const DEFAULT_SECTION = "default"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

func LoadConfig

func LoadConfig(filename string) (config *Config, err error)

Load INI config

func (*Config) GetAllKeys

func (config *Config) GetAllKeys() map[string][]string

Get all keys

func (*Config) GetAllSections

func (config *Config) GetAllSections() []string

Get all config sections

func (*Config) GetConfigFilename

func (config *Config) GetConfigFilename() string

Get config file name

func (*Config) GetValue

func (config *Config) GetValue(section, key string) (string, error)

Get value

func (*Config) ReloadConfig

func (config *Config) ReloadConfig() (err error)

Reload config file

type ConfigData

type ConfigData struct {
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL