template

package
v0.14.1-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 9, 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