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

Method Iter

xmlparser/attributes.go:120–122  ·  view source on GitHub ↗

Iter returns an iterator over the attributes. !WARNING! Don't delete items from the Attributes while iterating. If you need to filter attributes, use the Filter method.

()

Source from the content-addressed store, hash-verified

118// !WARNING! Don't delete items from the Attributes while iterating.
119// If you need to filter attributes, use the Filter method.
120func (a *Attributes) Iter() iter.Seq[*Attribute] {
121 return slices.Values(a.s)
122}
123
124// Filter removes all attributes that do not satisfy the predicate function.
125func (a *Attributes) Filter(pred func(*Attribute) bool) {

Callers 2

replaceEntitiesMethod · 0.80
writeAttrsToMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected