func loadConfig() *settings { conf := settings{} if err := config.Load("config/dbase.conf", &conf); err != nil { println(err.Error()) return &settings{ DBName: dbName, DBPass: dbPass, DBUser: dbUser, DBHost: dbHost} } return &conf }
func (s *settings) load() error { return config.Load("config/eden.conf", &s) }