AutomaticEnv makes Viper check if environment variables match any of the existing keys (config, default or flags). If matching env vars are found, they are loaded into Viper.
()
| 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. |
| 1399 | func AutomaticEnv() { v.AutomaticEnv() } |
| 1400 | |
| 1401 | func (v *Viper) AutomaticEnv() { |
| 1402 | v.automaticEnvApplied = true |
nothing calls this directly
no test coverage detected