(a Type, b Type)
| 366 | func (j jsonObject) tryDecode() (JSON, error) { return j, nil } |
| 367 | |
| 368 | func cmpJSONTypes(a Type, b Type) int { |
| 369 | if b > a { |
| 370 | return -1 |
| 371 | } |
| 372 | if b < a { |
| 373 | return 1 |
| 374 | } |
| 375 | return 0 |
| 376 | } |
| 377 | |
| 378 | func (j jsonNull) Compare(other JSON) (int, error) { return cmpJSONTypes(j.Type(), other.Type()), nil } |
| 379 | func (j jsonFalse) Compare(other JSON) (int, error) { return cmpJSONTypes(j.Type(), other.Type()), nil } |
no outgoing calls
no test coverage detected
searching dependent graphs…