StartElement represents a start element token (e.g., ). SelfClosing indicates whether the element is self-closing (e.g., ).
| 13 | // StartElement represents a start element token (e.g., <tag>). |
| 14 | // SelfClosing indicates whether the element is self-closing (e.g., <tag/>). |
| 15 | type StartElement struct { |
| 16 | Name Name |
| 17 | Attrs *Attributes |
| 18 | SelfClosing bool |
| 19 | } |
| 20 | |
| 21 | // WriteTo writes the XML representation of the start element to the provided writer. |
| 22 | func (e *StartElement) WriteTo(w TokenWriter) error { |
nothing calls this directly
no outgoing calls
no test coverage detected