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

template

package
v2.950.5 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	template.Config
	TemplateConfig  map[string]any
	AST             *ast.AST
	EnabledFeatures map[string]bool
}

type GlobalContext

type GlobalContext struct {
	Config                  map[string]any
	AST                     *ast.AST
	EnabledTemplateFeatures map[string]bool
}

type Template

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

func New

func New(ctx context.Context, target types.Target, cfg Config) *Template

func (*Template) Execute

func (t *Template) Execute(ctx context.Context) error

Jump to

Keyboard shortcuts

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