MCPcopy Create free account
hub / github.com/AndroidPoet/playconsole-cli / getMapHeaders

Function getMapHeaders

internal/output/output.go:433–441  ·  view source on GitHub ↗
(v reflect.Value)

Source from the content-addressed store, hash-verified

431}
432
433func getMapHeaders(v reflect.Value) []string {
434 keys := v.MapKeys()
435 headers := make([]string, 0, len(keys))
436 for _, key := range keys {
437 headers = append(headers, fmt.Sprintf("%v", key.Interface()))
438 }
439 sort.Strings(headers)
440 return headers
441}
442
443func getMapValues(v reflect.Value, headers []string) []string {
444 values := make([]string, 0, len(headers))

Callers 1

markdownRowsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected