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

Method Name

expr/user_type.go:32–40  ·  view source on GitHub ↗

Name returns the type name.

()

Source from the content-addressed store, hash-verified

30
31// Name returns the type name.
32func (u *UserTypeExpr) Name() string {
33 if u.AttributeExpr == nil {
34 return u.TypeName
35 }
36 if n, ok := u.Meta["struct:type:name"]; ok {
37 return n[0]
38 }
39 return u.TypeName
40}
41
42// Rename changes the type name to the given value.
43func (u *UserTypeExpr) Rename(n string) {

Callers 1

IDMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected