1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-23 00:00:54 +00:00
Beego/config/xml
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_test.go code style simplify 2014-07-17 16:22:41 +08:00
xml.go config: add more method 2014-08-07 17:24:21 +08:00