package
1.7.2
Repository: https://github.com/ansiz/beego.git
Documentation: pkg.go.dev

# Packages

Package xml for config provider.
Package yaml for config provider depend on github.com/beego/goyaml2 go install github.com/beego/goyaml2 Usage: import( _ "github.com/astaxie/beego/config/yaml" "github.com/astaxie/beego/config" ) cnf, err := config.NewConfig("yaml", "config.yaml") More docs http://beego.me/docs/module/config.md.

# Functions

ExpandValueEnv returns value of convert with environment variable.
ExpandValueEnvForMap convert all string value with environment variable.
NewConfig adapterName is ini/json/xml/yaml.
NewConfigData adapterName is ini/json/xml/yaml.
NewFakeConfig return a fake Congiger.
ParseBool returns the boolean value represented by the string.
Register makes a config adapter available by the adapter name.
ToString converts values of any type to string.

# Structs

IniConfig implements Config to parse ini file.
IniConfigContainer A Config represents the ini configuration.
JSONConfig is a json config parser and implements Config interface.
JSONConfigContainer A Config represents the json configuration.

# Interfaces

Config is the adapter interface for parsing config file to get raw data to Configer.
Configer defines how to get and set value from configuration raw data.