type Template … func (r *Template) tp() *template.Template { … } func (r *Template) build() { … } func (r *Template) Execute(w io.Writer, data any) error { … } var inTest … // New creates a new lazy template, delaying the parsing work until it is first // needed. If the code is being run as part of tests, the template parsing will // happen immediately. func New(name, text string) *Template { … }