Versions in this module Expand all Collapse all v0 v0.12.5 Mar 4, 2020 v0.12.4 Mar 3, 2020 v0.12.3 Feb 7, 2019 GO-2020-0033 GO-2020-0033: Path Traversal in aahframe.work v0.12.2 Dec 13, 2018 GO-2020-0033 GO-2020-0033: Path Traversal in aahframe.work v0.12.1 Dec 8, 2018 GO-2020-0033 GO-2020-0033: Path Traversal in aahframe.work v0.12.0 Dec 2, 2018 GO-2020-0033 GO-2020-0033: Path Traversal in aahframe.work Changes in this version + type Config struct + func LoadFile(file string) (*Config, error) + func LoadFiles(files ...string) (*Config, error) + func NewEmpty() *Config + func ParseString(cfg string) (*Config, error) + func VFSLoadFile(fs *vfs.VFS, file string) (*Config, error) + func VFSLoadFiles(fs *vfs.VFS, files ...string) (*Config, error) + func (c *Config) Bool(key string) (bool, bool) + func (c *Config) BoolDefault(key string, defaultValue bool) bool + func (c *Config) ClearProfile() + func (c *Config) Float32(key string) (float32, bool) + func (c *Config) Float32Default(key string, defaultValue float32) float32 + func (c *Config) Float64(key string) (float64, bool) + func (c *Config) Get(key string) (interface{}, bool) + func (c *Config) GetSubConfig(key string) (*Config, bool) + func (c *Config) HasProfile(profile string) bool + func (c *Config) Int(key string) (int, bool) + func (c *Config) Int64(key string) (int64, bool) + func (c *Config) Int64List(key string) ([]int64, bool) + func (c *Config) IntDefault(key string, defaultValue int) int + func (c *Config) IntList(key string) ([]int, bool) + func (c *Config) IsExists(key string) bool + func (c *Config) IsProfileEnabled() bool + func (c *Config) Keys() []string + func (c *Config) KeysByPath(path string) []string + func (c *Config) Merge(source *Config) error + func (c *Config) Merge2Section(key string, source *Config) error + func (c *Config) Profile() string + func (c *Config) SetBool(key string, value bool) + func (c *Config) SetFloat32(key string, value float32) + func (c *Config) SetFloat64(key string, value float64) + func (c *Config) SetInt(key string, value int) + func (c *Config) SetInt64(key string, value int64) + func (c *Config) SetProfile(profile string) error + func (c *Config) SetString(key string, value string) + func (c *Config) String(key string) (string, bool) + func (c *Config) StringDefault(key, defaultValue string) string + func (c *Config) StringList(key string) ([]string, bool) + func (c *Config) ToJSON() string