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

Function newRT

http/codegen/openapi/v3/types_test.go:660–669  ·  view source on GitHub ↗
(id string, att *expr.AttributeExpr)

Source from the content-addressed store, hash-verified

658}
659
660func newRT(id string, att *expr.AttributeExpr) *expr.AttributeExpr {
661 return &expr.AttributeExpr{
662 Type: &expr.ResultTypeExpr{
663 Identifier: id,
664 UserTypeExpr: &expr.UserTypeExpr{
665 AttributeExpr: att,
666 },
667 },
668 }
669}
670
671// Helper function for result types with views
672func newRTWithView(id string, att *expr.AttributeExpr, view string) *expr.AttributeExpr {

Callers 2

TestHashAttributeFunction · 0.85
newRTWithViewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected