Versions in this module Expand all Collapse all v0 v0.1.1 Jan 8, 2019 Changes in this version + func Bool(path string) bool + func BoolVar(name string, value bool, usage string) + func Float(path string) float64 + func Float64Var(name string, value float64, usage string) + func FloatArray(path string) []float64 + func FloatMap(path string) map[string]float64 + func Int(path string) int + func Int64(path string) int64 + func Int64Var(name string, value int64, usage string) + func IntArray(path string) []int + func IntMap(path string) map[string]int + func IntVar(name string, value int, usage string) + func LoadCfg(path ...string) error + func LoadEnv(keys []string) + func Map(path string) map[string]*Element + func Parse() + func Set(path string, value interface{}) + func SetDefaultKey(k string, v interface{}) + func StrArray(path string) []string + func StrMap(path string) map[string]string + func String(path string) string + func StringVar(name string, value string, usage string) + func TimeStamp() string + func Uint64(path string) uint64 + func Uint64Var(name string, value uint64, usage string) + type Config struct + func NewConfig() *Config + func (c *Config) Array(path string) []*Element + func (c *Config) Bool(path string) bool + func (c *Config) CfgString() string + func (c *Config) Dump() error + func (c *Config) Ele(path string) (v *Element, ok bool) + func (c *Config) Float(path string) float64 + func (c *Config) FloatArray(path string) []float64 + func (c *Config) FloatMap(path string) map[string]float64 + func (c *Config) Int(path string) int + func (c *Config) Int64(path string) int64 + func (c *Config) IntArray(path string) []int + func (c *Config) IntMap(path string) map[string]int + func (c *Config) LoadCfg(path ...string) error + func (c *Config) Map(path string) map[string]*Element + func (c *Config) Match(pattern string) *Element + func (c *Config) Set(path string, value interface{}) + func (c *Config) StrArray(path string) []string + func (c *Config) StrMap(path string) map[string]string + func (c *Config) String(path string) string + func (c *Config) Uint64(path string) uint64 + type Element struct + func Array(path string) []*Element + func Ele(path string) (v *Element, ok bool) + func Match(pattern string) *Element + func (e *Element) Array() []*Element + func (e *Element) Bool() bool + func (e *Element) Float() float64 + func (e *Element) FloatArray() []float64 + func (e *Element) FloatMap() map[string]float64 + func (e *Element) Int() int + func (e *Element) Int64() int64 + func (e *Element) IntArray() []int + func (e *Element) IntMap() map[string]int + func (e *Element) Map() map[string]*Element + func (e *Element) StrArray() []string + func (e *Element) StrMap() map[string]string + func (e *Element) String() string + func (e *Element) Type() string + func (e *Element) Uint64() uint64