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

Function IsSet

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

IsSet checks to see if the key has been set in any of the data locations. IsSet is case-insensitive for a key.

(key string)

Source from the content-addressed store, hash-verified

1387// IsSet checks to see if the key has been set in any of the data locations.
1388// IsSet is case-insensitive for a key.
1389func IsSet(key string) bool { return v.IsSet(key) }
1390
1391func (v *Viper) IsSet(key string) bool {
1392 lcaseKey := strings.ToLower(key)

Callers

nothing calls this directly

Calls 1

IsSetMethod · 0.80

Tested by

no test coverage detected