Versions in this module Expand all Collapse all v1 v1.1.1 Aug 9, 2026 v1.1.0 Jun 19, 2024 v1.0.1 Jun 14, 2024 v1.0.0 Feb 20, 2024 Changes in this version + func PruneTemplateComments(input string) (pruned string, err error) + func RemoveTemplateComments(input string) (cleaned string) + type Action struct + Close *string + Open *string + Pipelines Pipelines + func (a *Action) Render() (source string) + func (a *Action) WalkVariables(fn VariablesWalkFn) (stopped bool) + type Branch struct + Action *Action + Text *string + func (b *Branch) Render() (source string) + type Grouping struct + Close *string + Group *Pipeline + Open *string + func (g Grouping) Render() (source string) + type Pipeline struct + Pipe *Pipeline + Root Variables + func (p *Pipeline) Render() (source string) + func (p *Pipeline) WalkVariables(fn func(variables *Variables) (stop bool)) (stopped bool) + type Pipelines []*Pipeline + func (p Pipelines) Render() (source string) + type Tree []*Branch + func ParseTemplate(filename, input string) (trees Tree, err error) + func (t Tree) Format() (output string) + func (t Tree) Render() (source string) + func (t Tree) WalkVariables(fn VariablesWalkFn) (stopped bool) + type Variable struct + Assign *string + Comment *string + Float *float64 + Grouping *Grouping + Ident *string + Int *int + Keyword *string + Literal *string + Range *string + Rune *string + Space *string + String *string + func (v *Variable) Render() (source string) + type Variables []*Variable + func (vs Variables) Render() (output string) + func (vs Variables) WalkVariables(fn func(variables *Variables) (stop bool)) (stopped bool) + type VariablesWalkFn func(variables *Variables) (stop bool)