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

Struct UserTypeExpr

expr/user_type.go:10–17  ·  view source on GitHub ↗

UserTypeExpr describes user defined types. While a given design must ensure that the names are unique the code used to generate code can create multiple user types that share the same name (for example because generated in different packages). UID is always unique and makes it possible to avoid infi

Source from the content-addressed store, hash-verified

8 // possible to avoid infinite recursions when traversing the data structures
9 // described by the attribute expression e.g. when computing example values.
10 UserTypeExpr struct {
11 // The embedded attribute expression.
12 *AttributeExpr
13 // Name of type
14 TypeName string
15 // UID of type
16 UID string
17 }
18)
19
20// ID returns the unique identifier for the user type.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected