package lazytemplate

Import Path
	internal/lazytemplate (on and

Dependency Relation
	imports 5 packages, and imported by 0 packages

Involved Source Files
	d-> lazytemplate.go

Exported Type Names

type Template (struct) Template is a wrapper around text/template.Template, where the underlying template will be parsed the first time it is needed. (*T) Execute(w io.Writer, data interface{}) error func New(name, text string) *Template
Exported Values
func New(name, text string) *Template 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.