summaryrefslogtreecommitdiff
path: root/funcs/doc.go
blob: 69a012819b850821a5f7052b61a53b62b5abbd68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
Package funcs is an internal package that provides gomplate namespaces and
functions to be used in 'text/template' templates.

The different namespaces can be added individually:

	f := template.FuncMap{}
	for k, v := range funcs.CreateMathFuncs(ctx) {
		f[k] = v
	}
	for k, v := range funcs.CreateNetFuncs(ctx) {
		f[k] = v
	}

Even though the functions are exported, these are not intended to be called
programmatically by external consumers, but instead only to be used as template
functions.

Deprecated: This package will be made internal in a future major version.
*/
package funcs