MCPcopy
hub / github.com/spf13/viper / Sub

Function Sub

viper.go:767–767  ·  view source on GitHub ↗

Sub returns new Viper instance representing a sub tree of this instance. Sub is case-insensitive for a key.

(key string)

Source from the content-addressed store, hash-verified

765// Sub returns new Viper instance representing a sub tree of this instance.
766// Sub is case-insensitive for a key.
767func Sub(key string) *Viper { return v.Sub(key) }
768
769func (v *Viper) Sub(key string) *Viper {
770 subv := New()

Callers

nothing calls this directly

Calls 1

SubMethod · 0.80

Tested by

no test coverage detected