(v interface{})
| 557 | } |
| 558 | |
| 559 | func isLiteral(v interface{}) bool { |
| 560 | switch v.(type) { |
| 561 | case string, |
| 562 | int, int8, int16, int32, int64, |
| 563 | uint, uint8, uint16, uint32, uint64, |
| 564 | float32, float64: |
| 565 | return true |
| 566 | } |
| 567 | |
| 568 | return false |
| 569 | } |
| 570 | |
| 571 | func getNonEmptyArrayOfObjects(v interface{}) (res []map[string]interface{}, err error) { |
| 572 | arr, ok := v.([]interface{}) |
no outgoing calls
no test coverage detected