Abit of refactoring into a more classic layout for an MVC style app.
This commit is contained in:
parent
db58b38917
commit
0c47f02201
5 changed files with 44 additions and 86 deletions
13
util/util.go
Normal file
13
util/util.go
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
package util
|
||||
|
||||
import (
|
||||
"log"
|
||||
)
|
||||
|
||||
func HandlePanic(message string) func() {
|
||||
return func() {
|
||||
if r := recover(); r != nil {
|
||||
log.Println(message, r)
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue