1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 15:10:55 +00:00
Beego/config
astaxie 2820f630c8 config: add more method
DefaultString(key string, defaultval string) string      // support
section::key type in key string when using ini and json type;
Int,Int64,Bool,Float,DIY are same.
	DefaultStrings(key string, defaultval []string) []string //get string
slice
	DefaultInt(key string, defaultval int) int
	DefaultInt64(key string, defaultval int64) int64
	DefaultBool(key string, defaultval bool) bool
	DefaultFloat(key string, defaultval float64) float64
	DIY(key string) (interface{}, error)
	GetSection(section string) (map[string]string, error)
	SaveConfigFile(filename string) error
2014-08-07 17:24:21 +08:00
..
xml config: add more method 2014-08-07 17:24:21 +08:00
yaml config: add more method 2014-08-07 17:24:21 +08:00
config.go config: add more method 2014-08-07 17:24:21 +08:00
fake.go config: add more method 2014-08-07 17:24:21 +08:00
ini_test.go beego: update licence& fix #669 2014-07-03 23:40:21 +08:00
ini.go config: add more method 2014-08-07 17:24:21 +08:00
json_test.go beego: update licence& fix #669 2014-07-03 23:40:21 +08:00
json.go config: add more method 2014-08-07 17:24:21 +08:00