mirror of https://github.com/spf13/viper.git
Whoops, overrode the original SetDefault ! didn't chekc much heh!
This commit is contained in:
parent
7b7d1442ac
commit
70685607d8
12
viper.go
12
viper.go
|
@ -174,15 +174,15 @@ func New() *Viper {
|
||||||
return v
|
return v
|
||||||
}
|
}
|
||||||
|
|
||||||
// Default retrieves the default Viper instance. To be loaded later
|
// DefaultConfig retrieves the default Viper instance. To be loaded
|
||||||
// with SetDefault.
|
// later with SetDefaultConfig.
|
||||||
func Default() *Viper {
|
func DefaultConfig() *Viper {
|
||||||
return v
|
return v
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetDefault applies this Viper instance as the default. Used when
|
// SetDefaultConfig applies this Viper instance as the default. Used
|
||||||
// calling the functions defined in the viper package.
|
// when calling the functions defined in the viper package.
|
||||||
func SetDefault(conf *Viper) {
|
func SetDefaultConfig(conf *Viper) {
|
||||||
v = conf
|
v = conf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue