GetByString is like Get but accepts a string name.
(name string)
| 47 | |
| 48 | // GetByString is like Get but accepts a string name. |
| 49 | func (a *Attributes) GetByString(name string) (string, bool) { |
| 50 | return a.Get(Name(name)) |
| 51 | } |
| 52 | |
| 53 | // Set sets the value of the attribute with the given name. |
| 54 | // If the attribute does not exist, it is created. |