mirror of
https://github.com/spf13/viper
synced 2025-04-28 00:07:22 +00:00
Merge ef0f429f98
into 1508a7ba44
This commit is contained in:
commit
8989fe88cf
1 changed files with 3 additions and 1 deletions
4
viper.go
4
viper.go
|
@ -758,7 +758,9 @@ func (v *Viper) Get(key string) any {
|
|||
}
|
||||
|
||||
// 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 (v *Viper) Sub(key string) *Viper {
|
||||
|
|
Loading…
Add table
Reference in a new issue