Help us shape the future of Go! Take the 2026 Go Developer Survey

scopedtmpl

package
v3.1.13 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 9 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
}

Source Files

  • scopedtmpl.go

Jump to

Keyboard shortcuts

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