mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 07:10:55 +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(registerDefaultErrorHandler)
|
||||
AddAPPStartHook(registerSession)
|
||||
@ -75,7 +75,6 @@ func initBeforeHttpRun() {
|
||||
AddAPPStartHook(registerTemplate)
|
||||
AddAPPStartHook(registerAdmin)
|
||||
|
||||
// do hooks function
|
||||
for _, hk := range hooks {
|
||||
if err := hk(); err != nil {
|
||||
panic(err)
|
||||
|
Loading…
Reference in New Issue
Block a user