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

Function scalarCSVValue

pkg/github/csv_output.go:387–403  ·  view source on GitHub ↗
(value any)

Source from the content-addressed store, hash-verified

385}
386
387func scalarCSVValue(value any) string {
388 switch v := value.(type) {
389 case nil:
390 return ""
391 case string:
392 return v
393 case json.Number:
394 return v.String()
395 case bool:
396 if v {
397 return "true"
398 }
399 return "false"
400 default:
401 return fmt.Sprint(v)
402 }
403}
404
405func isBodyColumn(column string) bool {
406 return column == "body" || strings.HasSuffix(column, ".body")

Callers 3

csvColumnValueFunction · 0.85
csvArrayValueFunction · 0.85
scalarCSVRowFunction · 0.85

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected