mirror of https://github.com/spf13/viper.git
add comment
This commit is contained in:
parent
0648a0fafe
commit
4ff42e3b4b
1
viper.go
1
viper.go
|
@ -664,6 +664,7 @@ func (v *Viper) Sub(key string) *Viper {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Sub list returns new Viper instance List representing a sub tree of this instance.
|
||||||
func SubList(key string) []*Viper { return v.SubList(key) }
|
func SubList(key string) []*Viper { return v.SubList(key) }
|
||||||
func (v *Viper) SubList(key string) []*Viper {
|
func (v *Viper) SubList(key string) []*Viper {
|
||||||
data := v.Get(key)
|
data := v.Get(key)
|
||||||
|
|
Loading…
Reference in New Issue