Documentation ¶
Index ¶
- Variables
- func CollectFields(nodes ...*parse.ListNode) map[string][]int
- func Example(withSimple bool, withTemplate bool)
- func FieldsTable(fields map[string]int) string
- func NodeTypeToString(t parse.NodeType) string
- func Parse() map[string]*parse.Tree
- func ParseTemplate() []*template.Template
- func Traverse(t *template.Template, process func(parse.Node, *Frame))
- type Frame
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NodeTypeToStringMap = map[parse.NodeType]string{ parse.NodeAction: "action", parse.NodeBool: "bool", parse.NodeBreak: "break", parse.NodeChain: "chain", parse.NodeCommand: "command", parse.NodeComment: "comment", parse.NodeContinue: "continue", parse.NodeDot: "dot", parse.NodeField: "field", parse.NodeIdentifier: "identifier", parse.NodeIf: "if", parse.NodeList: "list", parse.NodeNil: "nil", parse.NodeNumber: "number", parse.NodePipe: "pipe", parse.NodeRange: "range", parse.NodeString: "string", parse.NodeTemplate: "template", parse.NodeText: "text", parse.NodeVariable: "variable", parse.NodeWith: "with", } )
Functions ¶
func FieldsTable ¶
func NodeTypeToString ¶
func ParseTemplate ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.