mirror of
https://github.com/spf13/viper
synced 2024-12-23 03:57:01 +00:00
enable 'static' method call of EnableCascading
This commit is contained in:
parent
997cc95aa8
commit
64fc762506
1 changed files with 1 additions and 0 deletions
1
viper.go
1
viper.go
|
@ -141,6 +141,7 @@ func (v *viper) SetEnvPrefix(in string) {
|
|||
|
||||
// Enable cascading configuration values for files. Will traverse down
|
||||
// ConfigPaths in an attempt to find keys
|
||||
func EnableCascading(enable bool){ v.EnableCascading(enable) }
|
||||
func (v *viper) EnableCascading(enable bool){
|
||||
v.cascadeConfigurations = enable;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue