Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrBadRequest = NewErrorCode(40000001, "bad request")
)
error code format: [4|5][000][00][00] client error
View Source
var (
ErrServerError = NewErrorCode(50000001, "server error")
)
server error
View Source
var OK = NewErrorCode(0, "ok")
Functions ¶
This section is empty.
Types ¶
type ErrorCode ¶
type ErrorCode struct {
// contains filtered or unexported fields
}
func NewErrorCode ¶
Click to show internal directories.
Click to hide internal directories.