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

Method UserType

expr/root.go:138–150  ·  view source on GitHub ↗

UserType returns the user type expression with the given name if found, nil otherwise.

(name string)

Source from the content-addressed store, hash-verified

136
137// UserType returns the user type expression with the given name if found, nil otherwise.
138func (r *RootExpr) UserType(name string) UserType {
139 for _, t := range r.Types {
140 if t.Name() == name {
141 return t
142 }
143 }
144 for _, t := range r.ResultTypes {
145 if t.Name() == name {
146 return t
147 }
148 }
149 return nil
150}
151
152// Service returns the service with the given name.
153func (r *RootExpr) Service(name string) *ServiceExpr {

Callers 15

TestProtoBufTransformFunction · 0.80
TypeFunction · 0.80
ArrayOfFunction · 0.80
MapOfFunction · 0.80
parseAttributeArgsFunction · 0.80
CollectionOfFunction · 0.80
TestGoTransformUnionFunction · 0.80

Calls 1

NameMethod · 0.65