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

Function collection

expr/project_test.go:146–157  ·  view source on GitHub ↗
(elemType *ResultTypeExpr)

Source from the content-addressed store, hash-verified

144}
145
146func collection(elemType *ResultTypeExpr) *ResultTypeExpr {
147 return &ResultTypeExpr{
148 UserTypeExpr: &UserTypeExpr{
149 AttributeExpr: &AttributeExpr{
150 Type: &Array{
151 ElemType: &AttributeExpr{Type: elemType},
152 },
153 },
154 },
155 Views: elemType.Views,
156 }
157}
158
159func resultRecursive(params ...any) *ResultTypeExpr {
160 rt := resultType(params...)

Callers 1

project_test.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected