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

Function IsUnion

expr/types.go:254–254  ·  view source on GitHub ↗

IsUnion returns true if the data type is a map.

(dt DataType)

Source from the content-addressed store, hash-verified

252
253// IsUnion returns true if the data type is a map.
254func IsUnion(dt DataType) bool { return AsUnion(dt) != nil }
255
256// IsPrimitive returns true if the data type is a primitive type.
257func IsPrimitive(dt DataType) bool {

Callers 15

transformAttributeFunction · 0.92
transformObjectFunction · 0.92
collectHelpersFunction · 0.92
isUnionMessageFunction · 0.92
analyzeMethod · 0.92
buildInitDataMethod · 0.92
makeProtoBufMessageFunction · 0.92
makeProtoBufMessageRFunction · 0.92
protoBufMessageDefFunction · 0.92
protoBufGoFullTypeRefFunction · 0.92
transformAttributeFunction · 0.92

Calls 1

AsUnionFunction · 0.85

Tested by

no test coverage detected