Esempio n. 1
0
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"))
}
Esempio n. 2
0
File: db.go Progetto: mabetle/mdb
// 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)
}