A website for my game dev stuff that supports chat, etc.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
zedshaw-games/util/util.go

13 lines
170 B

package util
import (
"log"
)
func HandlePanic(message string) func() {
return func() {
if r := recover(); r != nil {
log.Println(message, r)
}
}
}