Documentation ¶
Index ¶
- func Diff(a, b *Tree)
- type Tree
- func (t *Tree) AppendDynamic(d string)
- func (t *Tree) AppendRangeSub() *Tree
- func (t *Tree) AppendStatic(text string)
- func (t *Tree) AppendSub() *Tree
- func (t *Tree) IncRangeStep()
- func (t *Tree) JSON() ([]byte, error)
- func (t *Tree) RenderTo(w io.Writer) error
- func (t *Tree) Valid() error
- func (t *Tree) WriteTo(w io.Writer) (written int64, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Tree ¶
type Tree struct { Statics []string Dynamics []any // string | *Tree | []any ExcludeStatics bool // controls if MarshalText Statics with serializing Title string Events [][]byte // contains filtered or unexported fields }
func (*Tree) AppendDynamic ¶
func (*Tree) AppendRangeSub ¶
AppendRangeSub adds a range subnode to tree. Templates call it on entering a range statement.
func (*Tree) AppendStatic ¶
func (*Tree) IncRangeStep ¶
func (t *Tree) IncRangeStep()
IncRangeStep records that a single range iteration has completed it.
Click to show internal directories.
Click to hide internal directories.