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