template

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 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

func IterateCount

func IterateCount(count int) []int

IterateCount returns array filled with 0..count

Types

This section is empty.

Jump to

Keyboard shortcuts

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