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

Function singleArrayKey

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

Source from the content-addressed store, hash-verified

332}
333
334func singleArrayKey(value map[string]any) (string, bool) {
335 var arrayKey string
336 for key, raw := range value {
337 if _, ok := raw.([]any); !ok {
338 continue
339 }
340 if arrayKey != "" {
341 return "", false
342 }
343 arrayKey = key
344 }
345 if arrayKey == "" {
346 return "", false
347 }
348 return arrayKey, true
349}
350
351func csvColumnValue(column string, value any) string {
352 str := scalarCSVValue(value)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected