pkg

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrOpenFile  = errors.New("failed to open file")
	ErrCreateDir = errors.New("failed to create output directory")
)
View Source
var ErrInvalidContext = errors.New("invalid context")

Functions

func FuncMap

func FuncMap() template.FuncMap

func LoadContexts

func LoadContexts(ctxList []string) (ctx map[string]any, err error)

Types

type Renderer

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

func (*Renderer) Render

func (r *Renderer) Render(input, output string, ctx map[string]any) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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