//
pkg.gl
Category
github.com/pmoscode/go-common
templates
package
0.10.0
Repository:
https://github.com/pmoscode/go-common.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
3
Dependents
0
Files
64 SLOC
#
Functions
NewTemplateManager
NewTemplateManager creates a new manager with a defined struct.
WithFunctions
WithFunctions adds a [template.FuncMap] to every template in the manager.
#
Structs
Manager
Manager holds the templates and the functions, which are applied on every template.