blob: cb1a5f5c821b46c9d25b284beedb4f24d4da86f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/*
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
|