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

Function getStructValues

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

Source from the content-addressed store, hash-verified

422}
423
424func getStructValues(v reflect.Value) []string {
425 values := make([]string, 0, v.NumField())
426 for i := 0; i < v.NumField(); i++ {
427 field := v.Field(i)
428 values = append(values, fmt.Sprintf("%v", field.Interface()))
429 }
430 return values
431}
432
433func getMapHeaders(v reflect.Value) []string {
434 keys := v.MapKeys()

Callers 4

printTableFunction · 0.85
printTSVFunction · 0.85
printCSVFunction · 0.85
markdownRowsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected