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

Method GoTypeRef

codegen/scope.go:255–258  ·  view source on GitHub ↗

GoTypeRef returns the Go code that refers to the Go type which matches the given attribute type.

(att *expr.AttributeExpr)

Source from the content-addressed store, hash-verified

253// GoTypeRef returns the Go code that refers to the Go type which matches the
254// given attribute type.
255func (s *NameScope) GoTypeRef(att *expr.AttributeExpr) string {
256 name := s.GoTypeName(att)
257 return goTypeRef(name, att.Type)
258}
259
260// GoTypeRefWithDefaults returns the Go code that refers to the Go type which
261// matches the given attribute type. The result of this function differs from

Callers 15

transTmplFuncsFunction · 0.80
analyzeMethod · 0.80
requestInitTemplateFunction · 0.80
buildPayloadDataMethod · 0.80
buildResponsesMethod · 0.80
buildErrorsDataMethod · 0.80
buildRequestBodyTypeMethod · 0.80
buildResponseBodyTypeMethod · 0.80
extractPathParamsMethod · 0.80
extractQueryParamsMethod · 0.80
extractHeadersMethod · 0.80
extractCookiesMethod · 0.80

Calls 2

GoTypeNameMethod · 0.95
goTypeRefFunction · 0.85

Tested by

no test coverage detected