Has returns true if the attribute with the given name exists.
(name Name)
| 99 | |
| 100 | // Has returns true if the attribute with the given name exists. |
| 101 | func (a *Attributes) Has(name Name) bool { |
| 102 | _, exists := a.m[name] |
| 103 | return exists |
| 104 | } |
| 105 | |
| 106 | // HasByString is like Has but accepts a string name. |
| 107 | func (a *Attributes) HasByString(name string) bool { |