GetNodeI is like GetNode, but case-insensitive
(key string)
| 75 | |
| 76 | // GetNodeI is like GetNode, but case-insensitive |
| 77 | func (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 |
| 85 | func (o Object) GetKeys() []string { |