scopedtmpl

package
v1.21.11 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 8 Imported by: 1

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