MCPcopy Create free account
hub / github.com/wavetermdev/waveterm / isStructType

Function isStructType

pkg/util/dbutil/dbmappable.go:128–136  ·  view source on GitHub ↗
(rt reflect.Type)

Source from the content-addressed store, hash-verified

126}
127
128func isStructType(rt reflect.Type) bool {
129 if rt.Kind() == reflect.Struct {
130 return true
131 }
132 if rt.Kind() == reflect.Pointer && rt.Elem().Kind() == reflect.Struct {
133 return true
134 }
135 return false
136}
137
138func isByteArrayType(t reflect.Type) bool {
139 return t.Kind() == reflect.Slice && t.Elem().Kind() == reflect.Uint8

Callers 2

ToDBMapFunction · 0.85
FromDBMapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected