ID returns the unique identifier for the user type.
()
| 19 | |
| 20 | // ID returns the unique identifier for the user type. |
| 21 | func (u *UserTypeExpr) ID() string { |
| 22 | if u.UID != "" { |
| 23 | return u.UID |
| 24 | } |
| 25 | return u.Name() |
| 26 | } |
| 27 | |
| 28 | // Kind implements DataKind. |
| 29 | func (*UserTypeExpr) Kind() Kind { return UserTypeKind } |