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

Function InConfig

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

InConfig checks to see if the given key (or an alias) is in the config file.

(key string)

Source from the content-addressed store, hash-verified

1463
1464// InConfig checks to see if the given key (or an alias) is in the config file.
1465func InConfig(key string) bool { return v.InConfig(key) }
1466
1467func (v *Viper) InConfig(key string) bool {
1468 lcaseKey := strings.ToLower(key)

Callers

nothing calls this directly

Calls 1

InConfigMethod · 0.80

Tested by

no test coverage detected