MCPcopy Create free account
hub / github.com/canopyclimate/golive / appendDynamicWithStatic

Method appendDynamicWithStatic

internal/tmpl/tree.go:92–95  ·  view source on GitHub ↗

appendDynamicWithStatic adds a to t's dynamics, preserving the alternating static/dynamic layout. Note that the empty static that gets appended here will get replaced if AppendStatic gets called next.

(a any)

Source from the content-addressed store, hash-verified

90// Note that the empty static that gets appended here
91// will get replaced if AppendStatic gets called next.
92func (t *Tree) appendDynamicWithStatic(a any) {
93 t.Dynamics = append(t.Dynamics, a)
94 t.Statics = append(t.Statics, "")
95}
96
97// nDyn returns the number of dynamic elements of t.
98func (t *Tree) nDyn() int {

Callers 1

appendDynamicMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected