MCPcopy
hub / github.com/BishopFox/jsluice / GetStringI

Method GetStringI

objects.go:124–130  ·  view source on GitHub ↗

GetStringI is like GetString, but the key is case-insensitive

(key, defaultVal string)

Source from the content-addressed store, hash-verified

122
123// GetStringI is like GetString, but the key is case-insensitive
124func (o Object) GetStringI(key, defaultVal string) string {
125 value := o.GetNodeI(key)
126 if value == nil || value.Type() != "string" {
127 return defaultVal
128 }
129 return value.RawString()
130}

Callers 4

awsMatcherFunction · 0.80
matchJQueryFunction · 0.80
AllURLMatchersFunction · 0.80
firebaseMatcherFunction · 0.80

Calls 3

GetNodeIMethod · 0.95
RawStringMethod · 0.80
TypeMethod · 0.45

Tested by

no test coverage detected