mirror of
https://github.com/astaxie/beego.git
synced 2024-11-29 18:51:28 +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 = 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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user