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:
parent
fe9c52fb69
commit
919675e793
3
beego.go
3
beego.go
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user