mirror of
https://github.com/spf13/viper
synced 2024-12-22 03:27:03 +00:00
add comment
This commit is contained in:
parent
0648a0fafe
commit
4ff42e3b4b
1 changed files with 1 additions and 0 deletions
1
viper.go
1
viper.go
|
@ -664,6 +664,7 @@ func (v *Viper) Sub(key string) *Viper {
|
|||
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 (v *Viper) SubList(key string) []*Viper {
|
||||
data := v.Get(key)
|
||||
|
|
Loading…
Reference in a new issue