This commit is contained in:
Lucas Vogelsang 2025-03-30 15:23:57 +00:00 committed by GitHub
commit 8989fe88cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -758,7 +758,9 @@ func (v *Viper) Get(key string) any {
} }
// Sub returns new Viper instance representing a sub tree of this instance. // Sub returns new Viper instance representing a sub tree of this instance.
// Sub is case-insensitive for a key. // Sub is case-insensitive for a key. The Viper object that is returned however
// is not a fully functional `Viper`. It will not include any values set with
// BindEnv and Unmarshal is not supported.
func Sub(key string) *Viper { return v.Sub(key) } func Sub(key string) *Viper { return v.Sub(key) }
func (v *Viper) Sub(key string) *Viper { func (v *Viper) Sub(key string) *Viper {