1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 13:00:54 +00:00

update the comments

This commit is contained in:
astaxie 2015-09-07 19:29:52 +08:00
parent fe9c52fb69
commit 919675e793

View File

@ -67,7 +67,7 @@ func initBeforeHttpRun() {
} }
} }
//init mime //init hooks
AddAPPStartHook(registerMime) AddAPPStartHook(registerMime)
AddAPPStartHook(registerDefaultErrorHandler) AddAPPStartHook(registerDefaultErrorHandler)
AddAPPStartHook(registerSession) AddAPPStartHook(registerSession)
@ -75,7 +75,6 @@ func initBeforeHttpRun() {
AddAPPStartHook(registerTemplate) AddAPPStartHook(registerTemplate)
AddAPPStartHook(registerAdmin) AddAPPStartHook(registerAdmin)
// do hooks function
for _, hk := range hooks { for _, hk := range hooks {
if err := hk(); err != nil { if err := hk(); err != nil {
panic(err) panic(err)