Abit of refactoring into a more classic layout for an MVC style app.

This commit is contained in:
Zed A. Shaw 2025-06-24 23:55:38 -04:00
parent db58b38917
commit 0c47f02201
5 changed files with 44 additions and 86 deletions

13
util/util.go Normal file
View 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)
}
}
}