From f4a7377c5d3a22c19af32b549827f8a0509a76ab Mon Sep 17 00:00:00 2001 From: Dave Henderson Date: Mon, 31 Jul 2017 22:50:41 -0400 Subject: Moving getenv to separate package Signed-off-by: Dave Henderson --- funcs.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'funcs.go') 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 } -- cgit v1.2.3