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

Function IsObject

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

IsObject returns true if the data type is an object.

(dt DataType)

Source from the content-addressed store, hash-verified

243
244// IsObject returns true if the data type is an object.
245func IsObject(dt DataType) bool { return AsObject(dt) != nil }
246
247// IsArray returns true if the data type is an array.
248func IsArray(dt DataType) bool { return AsArray(dt) != nil }

Callers 15

goTypeDefFunction · 0.92
analyzeMethod · 0.92
makeHTTPTypeRecursiveFunction · 0.92
buildPayloadDataMethod · 0.92
buildResultDataMethod · 0.92
buildResponsesMethod · 0.92
buildErrorsDataMethod · 0.92
buildRequestBodyTypeMethod · 0.92
extractPathParamsMethod · 0.92
extractQueryParamsMethod · 0.92
extractHeadersMethod · 0.92
extractCookiesMethod · 0.92

Calls 1

AsObjectFunction · 0.85

Tested by 1

TestIsObjectFunction · 0.68