package
1.6.0
Repository: https://github.com/osteele/liquid.git
Documentation: pkg.go.dev

# Functions

Errorf creates a parser.Error.
NewConfig creates a parser Config.
Scan breaks a string into a sequence of Tokens.
WrapError wraps its argument in a parser.Error if this argument is not already a parser.Error and is not locatable.

# Constants

ObjTokenType is the type of an object Chunk "{{…}}".
TagTokenType is the type of a tag Chunk "{%…%}".
TextTokenType is the type of a text Chunk.
TrimLeftTokenType is the type of a left trim tag "-".
TrimRightTokenType is the type of a right trim tag "-".

# Structs

ASTBlock represents a {% tag %}…{% endtag %}.
ASTObject is an {{ object }} object.
ASTRaw holds the text between the start and end of a raw tag.
ASTSeq is a sequence of nodes.
ASTTag is a tag {% tag %} that is not a block start or end.
ASTText is a text span, that is rendered verbatim.
ASTTrim is a trim object.
A Config holds configuration information for parsing and rendering.
SourceLoc contains a Token's source location.
A Token is an object {{ a.b }}, a tag {% if a>b %}, or a text chunk (anything outside of {{}} and {%%}.).

# Interfaces

ASTNode is a node of an AST.
BlockSyntax supplies the parser with syntax information about blocks.
An Error is a syntax error during template parsing.
Grammar supplies the parser with syntax information about blocks.
A Locatable provides source location information for error reporting.

# Type aliases

TokenType is the type of a Chunk.
TrimDirection determines the trim direction of an ASTTrim object.