chirpnest/utils.go
2019-05-03 11:58:36 +08:00

12 lines
130 B
Go

package main
import (
"log"
)
func failOnError(err error, msg string) {
if err != nil {
log.Fatalf("%s: %s", msg, err)
}
}