Documentation ¶
Overview ¶
Package template provides templating functionality.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Template ¶
type Template struct {
// contains filtered or unexported fields
}
Template represents a new Template with given name and content to be rendered with provided settings with use of built-in and custom functions.
func (*Template) CustomFunc ¶
func (t *Template) CustomFunc(funcs gotemplate.FuncMap)
CustomFunc adds new custom functions to the template if functions with the same names didn't exist
func (Template) Funcs ¶
func (t Template) Funcs() gotemplate.FuncMap
Funcs return available template out of the box and custom functions.
Click to show internal directories.
Click to hide internal directories.