maze-solver-go/utils/utils.go

11 lines
140 B
Go
Raw Normal View History

package utils
import "log"
func Check(err error, msg string, args ...any) {
if err != nil {
log.Printf(msg, args...)
panic(err)
}
}