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

Method GetNodeI

objects.go:77–82  ·  view source on GitHub ↗

GetNodeI is like GetNode, but case-insensitive

(key string)

Source from the content-addressed store, hash-verified

75
76// GetNodeI is like GetNode, but case-insensitive
77func (o Object) GetNodeI(key string) *Node {
78 key = strings.ToLower(key)
79 return o.GetNodeFunc(func(candidate string) bool {
80 return key == strings.ToLower(candidate)
81 })
82}
83
84// GetKeys returns a slice of all keys in an object
85func (o Object) GetKeys() []string {

Callers 1

GetStringIMethod · 0.95

Calls 1

GetNodeFuncMethod · 0.95

Tested by

no test coverage detected