From ad892008cc96c0a347660b0e5978d9167f553884 Mon Sep 17 00:00:00 2001 From: xiemengjun Date: Mon, 17 Dec 2012 20:37:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dkey=E5=AD=97=E7=AC=A6?= =?UTF-8?q?=E4=B8=B2bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template.go b/template.go index c6e53def..2932efd0 100644 --- a/template.go +++ b/template.go @@ -47,7 +47,7 @@ func Compare(a, b interface{}) (equal bool) { // AddFuncMap let user to register a func in the template func AddFuncMap(key string, funname interface{}) error { - if _, ok := beegoTplFuncMap["key"]; ok { + if _, ok := beegoTplFuncMap[key]; ok { beegoTplFuncMap[key] = funname return nil }