golang

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

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

func FuncMap(mangler mangling.GoMangler) template.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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL