package global // CheckError 处理错误 func CheckError(err error, msgTmpl string) { if err != nil { Log.Panicf(msgTmpl, err) } }