MCPcopy Index your code
hub / github.com/coder/coder / isStructOrStructPointer

Function isStructOrStructPointer

cli/cliui/table.go:346–348  ·  view source on GitHub ↗
(t reflect.Type)

Source from the content-addressed store, hash-verified

344}
345
346func isStructOrStructPointer(t reflect.Type) bool {
347 return t.Kind() == reflect.Struct || (t.Kind() == reflect.Pointer && t.Elem().Kind() == reflect.Struct)
348}
349
350// typeToTableHeaders converts a type to a slice of column names. If the given
351// type is invalid (not a struct or a pointer to a struct, has invalid table

Callers 2

typeToTableHeadersFunction · 0.85
valueToTableMapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected