HasByString is like Has but accepts a string name.
(name string)
| 105 | |
| 106 | // HasByString is like Has but accepts a string name. |
| 107 | func (a *Attributes) HasByString(name string) bool { |
| 108 | return a.Has(Name(name)) |
| 109 | } |
| 110 | |
| 111 | // Len returns the number of attributes. |
| 112 | func (a *Attributes) Len() int { |