Beispiel #1
0
func (c *Config) LoadFile(filename string) {
	err := gcfg.ReadFileInto(c, filename)
	if err != nil {
		logger.Critical("error parsing config:", err)
	}
}
Beispiel #2
0
func (c *Config) Load(ini string) {
	err := gcfg.ReadStringInto(c, ini)
	if err != nil {
		logger.Critical("error parsing config:", err)
	}
}