MCPcopy Create free account
hub / github.com/amp-labs/connectors / GetCaseInsensitive

Method GetCaseInsensitive

common/stringMap.go:43–51  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

41}
42
43func (m StringMap) GetCaseInsensitive(key string) (any, bool) {
44 for k, v := range m {
45 if strings.EqualFold(k, key) {
46 return v, true
47 }
48 }
49
50 return nil, false
51}
52
53func (m StringMap) Get(key string) (any, error) {
54 val, ok := m[key]

Callers 4

extractParentAssociationFunction · 0.80
extractChildAssociationFunction · 0.80
getDataMarshallerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected