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