Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache is a struct that stores the compiled nodes to prevent expensive parsing and compiling of DFL expressions.
func (*Cache) Get ¶
Get returns the node for the given expression and true, if a valid node is found. Otherwise, Get returns (nil, false).
func (*Cache) Has ¶
Has returns true if the cache has the Node for the given expression in the cache.
func (*Cache) MustParseCompile ¶
MustParseCompile parses and compiles the expression and then sets the resulting node in the cache.
func (*Cache) ParseCompile ¶
Parse and compile the DFL expression. If the expression was already compiled, use the version found in the cache. Otherwise,
Click to show internal directories.
Click to hide internal directories.