Versions in this module Expand all Collapse all v0 v0.0.2 Dec 5, 2023 v0.0.1 Dec 4, 2023 Changes in this version + const BadRequestCode + const ServerErrorCode + func Errorf(code int, format string, args ...interface{}) error + func SetSysErrorCode(whitelist, blacklist arr2d) + func ToErrorCode(err error) (string, string, bool) + func ToHttpCode(err error) int + type APIError struct + Code int + Message string + TraceId string + func (e *APIError) Error() string