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

Function IsMap

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

IsMap returns true if the data type is a map.

(dt DataType)

Source from the content-addressed store, hash-verified

249
250// IsMap returns true if the data type is a map.
251func IsMap(dt DataType) bool { return AsMap(dt) != nil }
252
253// IsUnion returns true if the data type is a map.
254func IsUnion(dt DataType) bool { return AsUnion(dt) != nil }

Callers 15

buildPayloadDataMethod · 0.92
buildResponsesMethod · 0.92
buildErrorsDataMethod · 0.92
addMarshalTagsFunction · 0.92
initWebSocketDataMethod · 0.92
transformAttributeFunction · 0.92
transformObjectFunction · 0.92
collectHelpersFunction · 0.92
makeProtoBufMessageFunction · 0.92
makeProtoBufMessageRFunction · 0.92
MapOfFunction · 0.92

Calls 1

AsMapFunction · 0.85

Tested by 1

TestIsMapFunction · 0.68