Versions in this module Expand all Collapse all v0 v0.1.0 Jul 21, 2022 Changes in this version + func GetLazyValue(x reflect.Value) reflect.Value + func IsTrue(val any) (truth, ok bool) + type ExecError struct + Err error + Name string + func (e ExecError) Error() string + func (e ExecError) Unwrap() error + type FuncMap map[string]any + func (fm FuncMap) GetByName(name string) reflect.Value + func (fm FuncMap) Has(name string) bool + type ImmediateString string + func (s ImmediateString) GetLazyValue() string + type LazyValue struct + Create func() T + func (v *LazyValue[T]) GetLazyValue() T + type LazyValueType interface + GetLazyValue func() T + type Template struct + func Must(t *Template, err error) *Template + func New(name string) *Template + func ParseFS(fsys fs.FS, patterns ...string) (*Template, error) + func ParseFiles(filenames ...string) (*Template, error) + func ParseGlob(pattern string) (*Template, error) + func (t *Template) AddParseTree(name string, tree *parse.Tree) (*Template, error) + func (t *Template) Clone() (*Template, error) + func (t *Template) DefinedTemplates() string + func (t *Template) Delims(left, right string) *Template + func (t *Template) Execute(wr io.Writer, data any) error + func (t *Template) ExecuteTemplate(wr io.Writer, name string, data any) error + func (t *Template) Funcs(funcMap parse.TemplateFuncs) *Template + func (t *Template) Lookup(name string) *Template + func (t *Template) Name() string + func (t *Template) New(name string) *Template + func (t *Template) Option(opt ...string) *Template + func (t *Template) Parse(text string) (*Template, error) + func (t *Template) ParseFS(fsys fs.FS, patterns ...string) (*Template, error) + func (t *Template) ParseFiles(filenames ...string) (*Template, error) + func (t *Template) ParseGlob(pattern string) (*Template, error) + func (t *Template) Templates() []*Template