MCPcopy Create free account
hub / github.com/goadesign/goa / isRawStruct

Function isRawStruct

codegen/scope.go:363–374  ·  view source on GitHub ↗
(dt expr.DataType)

Source from the content-addressed store, hash-verified

361}
362
363func isRawStruct(dt expr.DataType) bool {
364 if _, ok := dt.(*expr.Object); ok {
365 return true
366 }
367 if expr.IsObject(dt) {
368 return false
369 }
370 if expr.IsUnion(dt) {
371 return false
372 }
373 return true
374}

Callers 2

GoVarMethod · 0.85
goTypeRefFunction · 0.85

Calls 2

IsObjectFunction · 0.92
IsUnionFunction · 0.92

Tested by

no test coverage detected