template

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TmplFuncMap = template.FuncMap{
	"replace":      replace,
	"split":        split,
	"isSet":        isSet,
	"replaceRegex": replaceRegex,
}

TmplFuncMap expose custom go template functions

Functions

func ExecuteTemplate

func ExecuteTemplate(name string, data interface{}) ([]byte, error)

ExecuteTemplate renders template for given name with provided data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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