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

Function keyExists

viper.go:1756–1765  ·  view source on GitHub ↗
(k string, m map[string]any)

Source from the content-addressed store, hash-verified

1754}
1755
1756func keyExists(k string, m map[string]any) string {
1757 lk := strings.ToLower(k)
1758 for mk := range m {
1759 lmk := strings.ToLower(mk)
1760 if lmk == lk {
1761 return mk
1762 }
1763 }
1764 return ""
1765}
1766
1767func castToMapStringInterface(
1768 src map[any]any,

Callers 1

mergeMapsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected