(key string)
| 1452 | } |
| 1453 | |
| 1454 | func (v *Viper) realKey(key string) string { |
| 1455 | newkey, exists := v.aliases[key] |
| 1456 | if exists { |
| 1457 | v.logger.Debug("key is an alias", "alias", key, "to", newkey) |
| 1458 | |
| 1459 | return v.realKey(newkey) |
| 1460 | } |
| 1461 | return key |
| 1462 | } |
| 1463 | |
| 1464 | // InConfig checks to see if the given key (or an alias) is in the config file. |
| 1465 | func InConfig(key string) bool { return v.InConfig(key) } |
no test coverage detected