.\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)
StatusError 方法需要一个指针的receiver ? 方法定义的时候返回值看下
错误说明说的很清楚了的嘛, 如果要用StatusError 就必须要实现error方法才行