Versions in this module Expand all Collapse all v1 v1.2.0 May 16, 2014 Changes in this version + var DEFAULT_SECTION = "default" + func Register(name string, adapter Config) + type Config interface + Parse func(key string) (ConfigContainer, error) + type ConfigContainer interface + Bool func(key string) (bool, error) + DIY func(key string) (interface{}, error) + Float func(key string) (float64, error) + Int func(key string) (int, error) + Int64 func(key string) (int64, error) + Set func(key, val string) error + String func(key string) string + Strings func(key string) []string + func NewConfig(adapterName, fileaname string) (ConfigContainer, error) + func NewFakeConfig() ConfigContainer + type IniConfig struct + func (ini *IniConfig) Parse(name string) (ConfigContainer, error) + type IniConfigContainer struct + func (c *IniConfigContainer) Bool(key string) (bool, error) + func (c *IniConfigContainer) DIY(key string) (v interface{}, err error) + func (c *IniConfigContainer) Float(key string) (float64, error) + func (c *IniConfigContainer) Int(key string) (int, error) + func (c *IniConfigContainer) Int64(key string) (int64, error) + func (c *IniConfigContainer) Set(key, value string) error + func (c *IniConfigContainer) String(key string) string + func (c *IniConfigContainer) Strings(key string) []string + type JsonConfig struct + func (js *JsonConfig) Parse(filename string) (ConfigContainer, error) + type JsonConfigContainer struct + func (c *JsonConfigContainer) Bool(key string) (bool, error) + func (c *JsonConfigContainer) DIY(key string) (v interface{}, err error) + func (c *JsonConfigContainer) Float(key string) (float64, error) + func (c *JsonConfigContainer) Int(key string) (int, error) + func (c *JsonConfigContainer) Int64(key string) (int64, error) + func (c *JsonConfigContainer) Set(key, val string) error + func (c *JsonConfigContainer) String(key string) string + func (c *JsonConfigContainer) Strings(key string) []string v1.0.1 Dec 24, 2013