Documentation
¶
Overview ¶
Package golang provides the Go-specific template function map used by code generators.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FuncMap ¶
FuncMap returns a template.FuncMap containing common Go-specific template functions, plus a few other commonly utility functions to work with strings, maps and numbers.
For advanced users, a "dict" function (similar to sprig.Dict) is provided.
It injects a mangling.GoMangler, which may be configured with options.
Callers typically merge additional entries to suit the specific needs of a generator on top of this map.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.