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

Method IsCompatible

expr/user_type.go:51–53  ·  view source on GitHub ↗

IsCompatible returns true if u describes the (Go) type of val.

(val any)

Source from the content-addressed store, hash-verified

49
50// IsCompatible returns true if u describes the (Go) type of val.
51func (u *UserTypeExpr) IsCompatible(val any) bool {
52 return u.Type == nil || u.Type.IsCompatible(val)
53}
54
55// Attribute returns the embedded attribute.
56func (u *UserTypeExpr) Attribute() *AttributeExpr {

Callers 1

Calls 1

IsCompatibleMethod · 0.65

Tested by 1