funcmap

package
v3.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: MIT Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DatatypeMap

func DatatypeMap(dt, ndt map[string]string) map[string]interface{}

func FullFuncMap

func FullFuncMap(dt, ntd map[string]string) template.FuncMap

func FuncMap

func FuncMap(flist ...template.FuncMap) template.FuncMap

func Incrementer

func Incrementer(i int) int

func LanguageMap added in v3.1.0

func LanguageMap(lang *models.LanguageDefinition) template.FuncMap

LanguageMap returns the template functions that depend on the language definition of the template

imports  - the sorted, unique imports the columns need: {{ range imports .Columns }}
safe     - adds an underscore to a name that is reserved in the language: {{ .Name | camel | safe }}

lang can be nil, imports then returns nothing and safe returns the name as it is

func SimpleFuncMap

func SimpleFuncMap() template.FuncMap

func StandardMap

func StandardMap() template.FuncMap

func StringMap

func StringMap() template.FuncMap

Types

This section is empty.

Jump to

Keyboard shortcuts

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