generator

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MergeMaps added in v0.2.0

func MergeMaps[K comparable, V any](mps ...map[K]V) map[K]V

MergeMaps merges multiple maps with later maps taking precedence over earlier ones. Returns a new map without modifying the input maps.

Types

type Engine added in v0.2.0

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

func NewEngine added in v0.2.0

func NewEngine(cfg *core.ConfigFile) *Engine

func (*Engine) RenderTemplate added in v0.2.0

func (e *Engine) RenderTemplate(ctx context.Context, tmpl core.Template) error

type TemplateError

type TemplateError struct {
	File    string
	Line    int
	Column  int
	Message string
	Context []string
}

func NewTemplateError

func NewTemplateError(file string, err error) *TemplateError

func (*TemplateError) Error

func (te *TemplateError) Error() string

Jump to

Keyboard shortcuts

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