編譯錯誤,求助
.\app.go:43:35: cannot use StatusError literal (type StatusError) as type error in argument to respondWrithError:
StatusError does not implement error (Error method has pointer receiver)
.\app.go:48:35: cannot use StatusError literal (type StatusError) as type error in argument to respondWrithError:
StatusError does not implement error (Error method has pointer receiver)
2019-10-26
StatusError 方法需要一個指針的receiver ??? 方法定義的時候返回值看下
2019-08-19
錯誤說明說的很清楚了的嘛,? 如果要用StatusError 就必須要實現(xiàn)error方法才行