package main import ( "log" "os" ) func ExitIfErr(err error, message string) { if err == nil { return } log.Fatal("[ERROR] ", err) os.Exit(1) }