template

package
v0.9.1-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2023 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