Attributes represents a collection of XML attributes.
| 13 | |
| 14 | // Attributes represents a collection of XML attributes. |
| 15 | type Attributes struct { |
| 16 | s []*Attribute // Slice for ordered iteration |
| 17 | m map[Name]*Attribute // Map for quick lookup |
| 18 | } |
| 19 | |
| 20 | // NewAttributes creates a new [Attributes] instance from the given attributes. |
| 21 | func NewAttributes(attrs ...*Attribute) *Attributes { |
nothing calls this directly
no outgoing calls
no test coverage detected