add comment

This commit is contained in:
yangheng 2018-06-06 15:07:10 +08:00
parent 0648a0fafe
commit 4ff42e3b4b
1 changed files with 1 additions and 0 deletions

View File

@ -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)