template

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommonFuncs

func CommonFuncs() template.FuncMap

func EnvFuncs

func EnvFuncs(envs env.Store) template.FuncMap

func TemplateFuncs

func TemplateFuncs(t *template.Template) template.FuncMap

Types

type Dict

type Dict = map[string]any

type List added in v0.2.0

type List = []any

type Option added in v0.3.0

type Option = func(t *Template)

func WithDelims added in v0.3.0

func WithDelims(left, right string) Option

func WithEnvs added in v0.3.0

func WithEnvs(envs env.Map) Option

type StringList added in v0.3.3

type StringList = []string

type Template

type Template struct {
	*template.Template
	// contains filtered or unexported fields
}

func New

func New(options ...Option) *Template

func (*Template) ParsePath

func (t *Template) ParsePath(path string) error

func (*Template) ParsePaths

func (t *Template) ParsePaths(paths []string) error

Jump to

Keyboard shortcuts

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