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

Method EvalName

expr/http_response.go:113–119  ·  view source on GitHub ↗

EvalName returns the generic definition name used in error messages.

()

Source from the content-addressed store, hash-verified

111
112// EvalName returns the generic definition name used in error messages.
113func (r *HTTPResponseExpr) EvalName() string {
114 var suffix string
115 if r.Parent != nil {
116 suffix = fmt.Sprintf(" of %s", r.Parent.EvalName())
117 }
118 return "HTTP response" + suffix
119}
120
121// Prepare makes sure the response is initialized even if not done explicitly
122// by

Callers

nothing calls this directly

Calls 1

EvalNameMethod · 0.65

Tested by

no test coverage detected