mirror of https://github.com/spf13/viper.git
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
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 New Issue