MCPcopy Index your code
hub / github.com/github/github-mcp-server / primaryRowsFromMap

Function primaryRowsFromMap

pkg/github/csv_output.go:172–180  ·  view source on GitHub ↗
(value map[string]any)

Source from the content-addressed store, hash-verified

170}
171
172func 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
182func primaryRowsAtCurrentLevel(value map[string]any) ([]any, []string, bool) {
183 if key, ok := preferredPrimaryRowKey(value); ok {

Callers 1

csvDocumentFunction · 0.85

Calls 3

metadataWithoutPathFunction · 0.85
primaryRowsOneLevelDownFunction · 0.85

Tested by

no test coverage detected