Documentation ¶
Index ¶
Constants ¶
View Source
const ( BizError = iota + 10001 ParseError MysqlError RedisError TokenError )
Variables ¶
View Source
var NilBaseError = BaseError{}
Functions ¶
func Response ¶
func Response(w http.ResponseWriter, resp interface{}, err BaseError)
Types ¶
type BaseError ¶ added in v0.1.0
func MustDefaultError ¶ added in v0.1.0
Click to show internal directories.
Click to hide internal directories.