mirror of
https://github.com/spf13/viper
synced 2024-11-05 20:57:01 +00:00
docs: improve AutomaticEnv documentation
Fixes #1000 Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
This commit is contained in:
parent
33bcdc91ea
commit
8c89438499
1 changed files with 2 additions and 2 deletions
4
viper.go
4
viper.go
|
@ -1292,8 +1292,8 @@ func (v *Viper) IsSet(key string) bool {
|
|||
return val != nil
|
||||
}
|
||||
|
||||
// AutomaticEnv has Viper check ENV variables for all.
|
||||
// keys set in config, default & flags
|
||||
// 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.
|
||||
func AutomaticEnv() { v.AutomaticEnv() }
|
||||
|
||||
func (v *Viper) AutomaticEnv() {
|
||||
|
|
Loading…
Reference in a new issue