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

Method IsEmpty

expr/mapped_attribute.go:200–202  ·  view source on GitHub ↗

IsEmpty returns true if the mapped attribute contains no key.

()

Source from the content-addressed store, hash-verified

198
199// IsEmpty returns true if the mapped attribute contains no key.
200func (ma *MappedAttributeExpr) IsEmpty() bool {
201 return len(*ma.Type.(*Object)) == 0
202}

Callers 12

ValidateMethod · 0.80
FinalizeMethod · 0.80
ValidateMethod · 0.80
ValidateMethod · 0.80
mapUnmappedAttrsMethod · 0.80
ValidateMethod · 0.80
validateParamsMethod · 0.80
httpRequestBodyFunction · 0.80
buildHTTPResponseBodyFunction · 0.80
ValidateMethod · 0.80

Calls

no outgoing calls