MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / StartElement

Struct StartElement

xmlparser/tokens.go:15–19  ·  view source on GitHub ↗

StartElement represents a start element token (e.g., ). SelfClosing indicates whether the element is self-closing (e.g., ).

Source from the content-addressed store, hash-verified

13// StartElement represents a start element token (e.g., <tag>).
14// SelfClosing indicates whether the element is self-closing (e.g., <tag/>).
15type 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.
22func (e *StartElement) WriteTo(w TokenWriter) error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected