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

Function newRTWithView

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

Helper function for result types with views

(id string, att *expr.AttributeExpr, view string)

Source from the content-addressed store, hash-verified

670
671// Helper function for result types with views
672func newRTWithView(id string, att *expr.AttributeExpr, view string) *expr.AttributeExpr {
673 rt := newRT(id, att)
674 rt.Type.(*expr.ResultTypeExpr).Meta = expr.MetaExpr{
675 expr.ViewMetaKey: []string{view},
676 }
677 return rt
678}
679
680// Helper function for user types
681func newUserType(name string, att *expr.AttributeExpr) *expr.AttributeExpr {

Callers 1

TestHashAttributeFunction · 0.85

Calls 1

newRTFunction · 0.85

Tested by

no test coverage detected