mirror of
https://github.com/astaxie/beego.git
synced 2024-12-22 20:40:50 +00:00
support json comments
This commit is contained in:
parent
7196d6ede3
commit
7125bd8faa
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user