template

package
v0.4.0-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 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(ctx heimdall.Context, sub *subject.Subject) (string, error)
	Hash() string
}

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