(key string)
| 1389 | func IsSet(key string) bool { return v.IsSet(key) } |
| 1390 | |
| 1391 | func (v *Viper) IsSet(key string) bool { |
| 1392 | lcaseKey := strings.ToLower(key) |
| 1393 | val := v.find(lcaseKey, false) |
| 1394 | return val != nil |
| 1395 | } |
| 1396 | |
| 1397 | // AutomaticEnv makes Viper check if environment variables match any of the existing keys |
| 1398 | // (config, default or flags). If matching env vars are found, they are loaded into Viper. |