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

Struct Attributes

xmlparser/attributes.go:15–18  ·  view source on GitHub ↗

Attributes represents a collection of XML attributes.

Source from the content-addressed store, hash-verified

13
14// Attributes represents a collection of XML attributes.
15type 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.
21func NewAttributes(attrs ...*Attribute) *Attributes {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected