(value map[string]any)
| 180 | } |
| 181 | |
| 182 | func primaryRowsAtCurrentLevel(value map[string]any) ([]any, []string, bool) { |
| 183 | if key, ok := preferredPrimaryRowKey(value); ok { |
| 184 | rows, _ := value[key].([]any) |
| 185 | return rows, []string{key}, true |
| 186 | } |
| 187 | if key, ok := singleArrayKey(value); ok { |
| 188 | rows, _ := value[key].([]any) |
| 189 | return rows, []string{key}, true |
| 190 | } |
| 191 | return nil, nil, false |
| 192 | } |
| 193 | |
| 194 | func primaryRowsOneLevelDown(value map[string]any) ([]any, []string, bool) { |
| 195 | var matchedRows []any |
no test coverage detected