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

Function IsArray

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

IsArray returns true if the data type is an array.

(dt DataType)

Source from the content-addressed store, hash-verified

246
247// IsArray returns true if the data type is an array.
248func IsArray(dt DataType) bool { return AsArray(dt) != nil }
249
250// IsMap returns true if the data type is a map.
251func IsMap(dt DataType) bool { return AsMap(dt) != nil }

Callers 15

buildPayloadDataMethod · 0.92
buildResponsesMethod · 0.92
buildErrorsDataMethod · 0.92
buildResponseBodyTypeMethod · 0.92
addMarshalTagsFunction · 0.92
initWebSocketDataMethod · 0.92
paramForFunction · 0.92
itemsFromExprFunction · 0.92
headersFromExprFunction · 0.92
initValidationsFunction · 0.92
transformAttributeFunction · 0.92
transformObjectFunction · 0.92

Calls 1

AsArrayFunction · 0.85

Tested by 1

TestIsArrayFunction · 0.68