From e9e3299cf01f3a27dd60b7cc3a198852c16cdc31 Mon Sep 17 00:00:00 2001 From: "Serge A. Zaitsev" Date: Fri, 5 Dec 2014 19:05:46 +0200 Subject: [PATCH] fixed eval func prototype in tests --- zs_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zs_test.go b/zs_test.go index 0dbd68a..b18bfa2 100644 --- a/zs_test.go +++ b/zs_test.go @@ -49,8 +49,8 @@ this: is a content`) } func TestRender(t *testing.T) { - eval := func(a []string) ([]byte, error) { - return []byte("hello"), nil + eval := func(a []string, vars map[string]string) (string, error) { + return "hello", nil } vars := map[string]string{"foo": "bar"} -- 2.43.0