template

package
v0.0.0-rc7 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTemplateNotFound = fmt.Errorf("template not found")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Path string
}

type Engine

type Engine interface {
	Render(tmplName string, args any) (string, error)
}

func MustLoadTemplates

func MustLoadTemplates(cfg *Config) Engine

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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