You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
223 B
Go

package service
import (
"log"
"os"
)
func Check(err error, msg string, v ...interface{}) {
if err != nil {
Error(msg, v...)
}
}
func Error(msg string, v ...interface{}) {
log.Fatalf(msg+"\n", v...)
os.Exit(1)
}