template

package
v0.15.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTemplateRender = errors.New("template error")

Functions

func DecodeTemplateHookFunc

func DecodeTemplateHookFunc() mapstructure.DecodeHookFunc

Types

type Template

type Template interface {
	Render(values map[string]any) (string, error)
	Hash() []byte
}

func New

func New(val string) (Template, error)

Jump to

Keyboard shortcuts

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