package
0.0.0-20210409115851-490b20ba258c
Repository: https://github.com/zzossig/rabbit.git
Documentation: pkg.go.dev

# Functions

NewContext creates a new context.
NewEnclosedContext creates a new context and stores the current context in the outer field.

# Constants

Item Types.
Item Types.
Item Types.
Item Types.
Item Types.
Item Types.
Item Types.
atomic.
Item Types.
node.
Item Types.
Item Types.
Item Types.
function.
Item Types.
Item Types.
Item Types.
Item Types.
Item Types.
Item Types.
Item Types.

# Structs

Array is an item that is represents array data-type.
AttrNode ::= AttributeNode Attribute node is not exist in the golang.org/x/net/html package so the struct field is different from the BaseNode.
BaseNode ::= ElementNode | TextNode | DocumentNode | CommentNode | DoctypeNode BaseNode just wraps *html.Node.
Boolean is an item that is represents bool data-type.
Context contains items that is used in Eval or built-in functions store field stores Varref as a key, Item as as value In example expression, let $a := 1 return $a, 'a' is a key and 1 is a value outer is a context to make inner scope of function.
Decimal is an item that is represents float64 data-type number token that is not contains `e` or `E` is evaluated to Decimal.
Double is an item that is represents float64 data-type number token that contains `e` or `E` is evaluated to Double.
Error is an item that is represents error when doing evaluation.
Focus contains context size, context position, context axis CSize is used in bif - fn:last() CPos is used in predicate expressions CAxis is used to evaluate (relative)path expressions.
FuncInline ::= function() {}.
FuncNamed ::= ns:bif#n.
FuncPartial ::= ns:bif(?,...).
HashKey is used as a Map key.
Integer is an item that is represents int data-type.
Map is an item that is represents map data-type.
Pair contains key, value pair.
Placeholder is an item that is represents ?(question token) when doing evaluation.
Sequence is an ordered collection of zero or more items.
Static contains information that is available during static analysis of the expression, prior to its evaluation.
String is an item that is represents string data-type.
Varref is an item that is represents $var when doing evaluation.

# Interfaces

Hasher implemented in atomic types: integer, decimal, double, boolean, string So, atomic types are used as a Map key.
Item ::= node | function(*) | xs:anyAtomicType.
Node ::= document, element, attribute, comment, namespace, processing-instruction, text.

# Type aliases

Ev represents Eval function.
Func represents function type.
Type represents Item Type.