package tools import "fmt" func Check(err error, msg string) { if err != nil { fmt.Println(msg, err) panic(err) } }