RegisterAlias creates an alias that provides another accessor for the same key. This enables one to change a name without breaking the application.
(alias, key string)
| 1414 | // RegisterAlias creates an alias that provides another accessor for the same key. |
| 1415 | // This enables one to change a name without breaking the application. |
| 1416 | func RegisterAlias(alias, key string) { v.RegisterAlias(alias, key) } |
| 1417 | |
| 1418 | func (v *Viper) RegisterAlias(alias, key string) { |
| 1419 | v.registerAlias(alias, strings.ToLower(key)) |
nothing calls this directly
no test coverage detected