2020-04-27 22:26:15 +00:00
|
|
|
package config
|
|
|
|
|
|
|
|
var (
|
|
|
|
registeredDefaults = make(map[string]interface{})
|
|
|
|
// default aliases
|
2020-06-15 10:04:08 +00:00
|
|
|
registeredAliases = map[string]string{}
|
2020-04-27 22:26:15 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func AddDefaultValue(key string, val interface{}) {
|
|
|
|
registeredDefaults[key] = val
|
|
|
|
}
|
|
|
|
|
|
|
|
func AddAlias(alias, orig string) {
|
|
|
|
registeredAliases[alias] = orig
|
|
|
|
}
|