scopedtmpl

package
v0.0.0-...-e61ee7f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ScopedTemplate

type ScopedTemplate struct {
	// contains filtered or unexported fields
}

func NewScopedTemplate

func NewScopedTemplate() *ScopedTemplate

func (*ScopedTemplate) Executor

func (t *ScopedTemplate) Executor(name string, funcMap template.FuncMap) (TemplateExecutor, error)

func (*ScopedTemplate) Freeze

func (t *ScopedTemplate) Freeze()

func (*ScopedTemplate) Funcs

func (t *ScopedTemplate) Funcs(funcMap template.FuncMap)

func (*ScopedTemplate) New

func (t *ScopedTemplate) New(name string) *template.Template

type TemplateExecutor

type TemplateExecutor interface {
	Execute(wr io.Writer, data any) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL