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

Struct Node

xmlparser/node.go:12–17  ·  view source on GitHub ↗

Node represents an XML node with a name, attributes, and child tokens.

Source from the content-addressed store, hash-verified

10
11// Node represents an XML node with a name, attributes, and child tokens.
12type Node struct {
13 Parent *Node
14 Name Name
15 Attrs *Attributes
16 Children []Token
17}
18
19// FilterChildren removes all child nodes that do not satisfy the given predicate function.
20func (n *Node) FilterChildren(pred func(child Token) bool) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected