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

Function newUserType

http/codegen/openapi/v3/types_test.go:681–688  ·  view source on GitHub ↗

Helper function for user types

(name string, att *expr.AttributeExpr)

Source from the content-addressed store, hash-verified

679
680// Helper function for user types
681func newUserType(name string, att *expr.AttributeExpr) *expr.AttributeExpr {
682 return &expr.AttributeExpr{
683 Type: &expr.UserTypeExpr{
684 AttributeExpr: att,
685 TypeName: name,
686 },
687 }
688}
689
690// Helper function for recursive types
691func newRecursiveType(name string) *expr.AttributeExpr {

Callers 1

TestHashAttributeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected