3 ms·
I agree, but i create Fatal and not fatal functions. func checkErrPanic(err error) { if err != nil { panic(err) } } func checkErrNonFatal(err
by czbond 11y ago
I agree, but i create Fatal and not fatal functions.
func checkErrPanic(err error) {
if err != nil {
panic(err)
}
}
func checkErrNonFatal(err error) {
if err != nil {
fmt.Println(err)
return
}
}