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

Method FieldTag

expr/attribute.go:543–548  ·  view source on GitHub ↗

FieldTag returns the field tag if the attribute is a field.

()

Source from the content-addressed store, hash-verified

541
542// FieldTag returns the field tag if the attribute is a field.
543func (a *AttributeExpr) FieldTag() (tag string, found bool) {
544 if a == nil {
545 return
546 }
547 return a.Meta.Last("rpc:tag")
548}
549
550// HasDefaultValue returns true if the attribute with the given name has a
551// default value.

Callers 2

validateRPCTagsFunction · 0.80
rpcTagFunction · 0.80

Calls 1

LastMethod · 0.80

Tested by

no test coverage detected