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

Function object

expr/equal_test.go:68–78  ·  view source on GitHub ↗
(dts ...DataType)

Source from the content-addressed store, hash-verified

66}
67
68func object(dts ...DataType) *Object {
69 var obj Object = make([]*NamedAttributeExpr, len(dts))
70 for i, dt := range dts {
71 att := &AttributeExpr{Type: dt}
72 obj[i] = &NamedAttributeExpr{
73 Attribute: att,
74 Name: fmt.Sprintf("att%d", i),
75 }
76 }
77 return &obj
78}
79
80func userType(name string, dt DataType) *UserTypeExpr {
81 return &UserTypeExpr{TypeName: name, AttributeExpr: &AttributeExpr{Type: dt}}

Callers 2

TestEqualFunction · 0.85
project_test.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected