From ee714d3d2b5d4977207cd97225636f9a82948fa3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=95=86=E8=AE=AF=E5=9C=A8=E7=BA=BF?= Date: Sat, 4 Jul 2015 14:23:46 +0800 Subject: [PATCH] update --- app.go | 2 +- template.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app.go b/app.go index 5599511..e24f879 100644 --- a/app.go +++ b/app.go @@ -115,7 +115,7 @@ func NewApp(path string, args ...string) *App { ActionsPath: map[reflect.Type]string{}, ActionsNamePath: map[string]string{}, ActionsMethodRoute: make(map[string]map[string]string), - FuncMaps: defaultFuncs, + FuncMaps: DefaultFuncs, VarMaps: T{}, filters: make([]Filter, 0), StaticVerMgr: DefaultStaticVerMgr, diff --git a/template.go b/template.go index 0564c92..5a4c6ec 100644 --- a/template.go +++ b/template.go @@ -28,7 +28,7 @@ import ( * XwebVer —— string */ var ( - defaultFuncs template.FuncMap = template.FuncMap{ + DefaultFuncs template.FuncMap = template.FuncMap{ "Now": Now, "Eq": Eq, "FormatDate": FormatDate,