func Demo() { var c mconf.Config = mconf.NewConfig(ini.NewIniConfig("../data/demo.ini", "../data/demo2.ini")) c.Put("put", "temp put") demo.DemoConfig(c) fmt.Println(c.GetString("put")) }
// NewDBConfFromFile // file in ini format. func NewDBConfFromFile(location string) *DBConf { logger.Trace("NewDBConfFromFile() locaton: ", location) loader := ini.NewIniConfig(location) c := mconf.NewConfig(loader) return NewDBConfFromConfig(c) }