// Local fixes an issue where config files make nested values in the same
// map disappear.
Local fixes an issue where config files make nested values in the same
map disappear.
// Local fixes an issue where config files make nested values in the same // map disappear .
func Local() map[string]interface{} {
	conf := make(map[string]interface{})
	conf["algorithm"] = viper.GetString("local.algorithm")
	conf["skew"] = viper.GetInt("local.skew")
	db := make(map[string]interface{})
	db["path"] = viper.GetString("local.db.path")
	db["signal"] = viper.GetString("local.db.signal")
	db["propsd"] = viper.GetBool("local.db.propsd")
	db["prefix"] = viper.GetString("local.db.prefix")
	conf["db"] = db
	return conf
}
func Local ( ) map [ string ] interface { } { conf := make ( map [ string ] interface { } ) conf [ " " ] = viper . GetString ( " " ) conf [ " " ] = viper . GetInt ( " " ) db := make ( map [ string ] interface { } ) db [ " " ] = viper . GetString ( " " ) db [ " " ] = viper . GetString ( " " ) db [ " " ] = viper . GetBool ( " " ) db [ " " ] = viper . GetString ( " " ) conf [ " " ] = db return conf }
Local fixes an issue where config files make nested values in the same
map disappear.
Local fixes an issue where config files make nested values in the same map disappear .