From 4ff42e3b4ba3f8720e565ea6bf9b75ff614c778d Mon Sep 17 00:00:00 2001 From: yangheng Date: Wed, 6 Jun 2018 15:07:10 +0800 Subject: [PATCH] add comment --- viper.go | 1 + 1 file changed, 1 insertion(+) diff --git a/viper.go b/viper.go index 27d7b33..8d52e1a 100644 --- a/viper.go +++ b/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)