Documentation
¶
Overview ¶
Package funcmaps exposes utilities to work with template.FuncMap.
* funcmap merging, with guards against unwary overrides (coalesce, protecting builtins) * a default funcmap for golang codegen, with common mangling for go identifiers, go comments handling etc
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Coalesce ¶
Coalesce template.FuncMap s into the target template.FuncMap.
Coalesce is a merge with first wins, never overwriting keys.
Built-in template functions are implied and are therefore always protected from an override.
func Merge ¶
Merge template.FuncMap s into the target template.FuncMap.
Merge is performed with last wins, overwriting keys.
Built-in template functions are always protected from an override.
Types ¶
This section is empty.