(value map[string]any)
| 170 | } |
| 171 | |
| 172 | func primaryRowsFromMap(value map[string]any) ([]any, map[string]any, bool) { |
| 173 | if rows, path, ok := primaryRowsAtCurrentLevel(value); ok { |
| 174 | return rows, metadataWithoutPath(value, path), true |
| 175 | } |
| 176 | if rows, path, ok := primaryRowsOneLevelDown(value); ok { |
| 177 | return rows, metadataWithoutPath(value, path), true |
| 178 | } |
| 179 | return nil, nil, false |
| 180 | } |
| 181 | |
| 182 | func primaryRowsAtCurrentLevel(value map[string]any) ([]any, []string, bool) { |
| 183 | if key, ok := preferredPrimaryRowKey(value); ok { |
no test coverage detected