gocwexp/utils.go

18 lines
227 B
Go
Raw Normal View History

2019-12-29 03:45:12 +01:00
package main
import (
"log"
)
func failOnError(err error, msg string) {
if err != nil {
log.Fatalf("%s: %s", msg, err)
}
}
func logOnError(err error, msg string) {
if err != nil {
log.Printf("%s: %s", msg, err)
}
}