Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FuncMap = txttmpl.FuncMap{ "inc": func(i int) int { return i + 1 }, "empty": empty, "notempty": func(given interface{}) bool { return !empty(given) }, }
FuncMap defines the custom functions to be used in templates
Functions ¶
func MergeFuncs ¶
MergeFuncs merges the template functions passed as parameter with FuncMap content If overwrite is true, will overwrite any existing entry
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.