Documentation ¶
Index ¶
- Variables
- type Config
- func (self Config) Exists(name string) bool
- func (self Config) Get(name string) interface{}
- func (self Config) GetBool(name string) bool
- func (self Config) GetBools(name string) []bool
- func (self Config) GetFloat(name string) float64
- func (self Config) GetFloats(name string) []float64
- func (self Config) GetInt(name string) int64
- func (self Config) GetInts(name string) []int64
- func (self Config) GetSlice(name string) []interface{}
- func (self Config) GetString(name string) string
- func (self Config) GetStrings(name string) []string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrPathEmpty = errors.New("config: path empty") ErrPathNotCorrect = errors.New("config: path not correct") ErrConfigDontRead = errors.New("config: config file don`t read") )
Ошибки
View Source
var ( ErrParseKey = errors.New("config: parse error (key)") ErrParseQuote = errors.New("config: parse error (quote)") )
Ошибки
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config map[string]interface{}
Конфиг
Click to show internal directories.
Click to hide internal directories.