GetStringI is like GetString, but the key is case-insensitive
(key, defaultVal string)
| 122 | |
| 123 | // GetStringI is like GetString, but the key is case-insensitive |
| 124 | func (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 | } |
no test coverage detected