package
Version:
v0.14.0-rc3
Opens a new window with list of versions in this module.
Published: Feb 15, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package parser implements a parser for a template string.
Error represents a parse error.
Error returns error string.
Errors represents parse errors.
Append appends a parse error to errs.
Err returns an error equivalent to this errors.
If the list is empty, Err returns nil.
Error returns error string.
Parser represents a parser.
NewParser returns a new parser.
Parse parses the template string and returns the corresponding ast.Node.
Pos returns the Position value for the given offset.
type Position struct {
Line int
Column int
Offset int
}
Position describes an arbitrary source position.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.