1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-02 00:21:28 +00:00

support json comments

This commit is contained in:
astaxie 2013-12-06 13:43:08 +08:00
parent 7196d6ede3
commit 7125bd8faa

View File

@ -69,7 +69,7 @@ func init() {
StaticDir = make(map[string]string) StaticDir = make(map[string]string)
StaticDir["/static"] = "static" 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 // set this to 0.0.0.0 to make this app available to externally
HttpAddr = "127.0.0.1" 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) { func ParseConfig() (err error) {
AppConfig, err = config.NewConfig("ini", AppConfigPath) AppConfig, err = config.NewConfig("ini", AppConfigPath)
if err != nil { if err != nil {