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

Function primaryRowsAtCurrentLevel

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

Source from the content-addressed store, hash-verified

180}
181
182func 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
194func primaryRowsOneLevelDown(value map[string]any) ([]any, []string, bool) {
195 var matchedRows []any

Callers 2

primaryRowsFromMapFunction · 0.85
primaryRowsOneLevelDownFunction · 0.85

Calls 2

preferredPrimaryRowKeyFunction · 0.85
singleArrayKeyFunction · 0.85

Tested by

no test coverage detected