From 6aec3291409e3dce80eba8fa9bcab41ceaf826a1 Mon Sep 17 00:00:00 2001 From: Dave Henderson Date: Fri, 29 Dec 2017 22:22:53 +0100 Subject: Refactoring template processing Signed-off-by: Dave Henderson --- gomplate_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gomplate_test.go') diff --git a/gomplate_test.go b/gomplate_test.go index d3d23cc6..c091f1ea 100644 --- a/gomplate_test.go +++ b/gomplate_test.go @@ -15,9 +15,9 @@ import ( "github.com/stretchr/testify/assert" ) -func testTemplate(g *Gomplate, template string) string { +func testTemplate(g *Gomplate, tmpl string) string { var out bytes.Buffer - g.RunTemplate(&input{"testtemplate", template}, &out) + g.RunTemplate(&tplate{name: "testtemplate", contents: tmpl, target: &out}) return out.String() } -- cgit v1.2.3