maze-solver-go/utils/utils.go

11 lines
140 B
Go

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