IsArray returns true if the result value is a JSON array.
()
| 217 | |
| 218 | // IsArray returns true if the result value is a JSON array. |
| 219 | func (t Result) IsArray() bool { |
| 220 | return t.Type == JSON && len(t.Raw) > 0 && t.Raw[0] == '[' |
| 221 | } |
| 222 | |
| 223 | // IsBool returns true if the result value is a JSON boolean. |
| 224 | func (t Result) IsBool() bool { |
no outgoing calls