Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cursor ¶
type Cursor interface { // Pos returns the position of the Node. // Implementations MUST store Cursor's in order by the following rules: // Positions MUST be unique. // The node.Root MUST have a position of 0. // Namespaces, Attributes, and Children MUST be in order, from least to greatest. // Namespace positions MUST be less than the Attribute and Children positions. // Attribute positions MUST be less than Children positions. Pos() int // Node returns the node.Node stored in this Cursor. Node() node.Node Namespaces() []Cursor Attributes() []Cursor Children() []Cursor Parent() Cursor }
Cursor's are used for tracking the position and child-parent relationships of node.Node's.
type InMemory ¶
type InMemory struct {
// contains filtered or unexported fields
}
func CreateInMemory ¶
Gathers and stores node.Node's in memory.
func (*InMemory) Attributes ¶
func (*InMemory) Namespaces ¶
Click to show internal directories.
Click to hide internal directories.