summaryrefslogtreecommitdiff
path: root/funcs.go
diff options
context:
space:
mode:
Diffstat (limited to 'funcs.go')
-rw-r--r--funcs.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/funcs.go b/funcs.go
index b65170a3..aa98f029 100644
--- a/funcs.go
+++ b/funcs.go
@@ -9,11 +9,9 @@ import (
// initFuncs - The function mappings are defined here!
func initFuncs(data *Data) template.FuncMap {
- env := &Env{}
typeconv := &TypeConv{}
f := template.FuncMap{
- "getenv": env.Getenv,
"bool": typeconv.Bool,
"has": typeconv.Has,
"json": typeconv.JSON,
@@ -42,5 +40,6 @@ func initFuncs(data *Data) template.FuncMap {
funcs.AddNetFuncs(f)
funcs.AddReFuncs(f)
funcs.AddStringFuncs(f)
+ funcs.AddEnvFuncs(f)
return f
}