FieldTag returns the field tag if the attribute is a field.
()
| 541 | |
| 542 | // FieldTag returns the field tag if the attribute is a field. |
| 543 | func (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. |
no test coverage detected