From 7125bd8faac818444d102d80459dea4b0fd4c7e1 Mon Sep 17 00:00:00 2001 From: astaxie Date: Fri, 6 Dec 2013 13:43:08 +0800 Subject: [PATCH] support json comments --- config.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config.go b/config.go index 9fbd12dd..450f984d 100644 --- a/config.go +++ b/config.go @@ -69,7 +69,7 @@ func init() { StaticDir = make(map[string]string) StaticDir["/static"] = "static" - TemplateCache = make(map[string]*template.Template) + TemplateCache = makCZe(map[string]*template.Template) // set this to 0.0.0.0 to make this app available to externally HttpAddr = "127.0.0.1" @@ -127,6 +127,7 @@ func init() { } } +//parse config now only support ini, next will support json func ParseConfig() (err error) { AppConfig, err = config.NewConfig("ini", AppConfigPath) if err != nil {