template

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2020 License: LGPL-2.1 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TemplateFunctions = template.FuncMap{
	"Iterate": iterateCount,
}

TemplateFunctions provides helper functions to be used in go templates.

Functions

func ApplyTemplate

func ApplyTemplate(tmplPath string, tmplData interface{}) (string, error)

ApplyTemplate parses the given `tmplPath` and applies the given `tmplData` on the template

Types

This section is empty.

Jump to

Keyboard shortcuts

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