Exemple #1
0
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
}
Exemple #2
0
func (s *settings) load() error {
	return config.Load("config/eden.conf", &s)
}