Documentation
¶
Index ¶
- Variables
- func AddStatus(status *Status)
- func AddStatusText(lang string, code int32, text string)
- func GetText(lang string, code int32) string
- func Is(a, b error) bool
- func IsCode(err error, code int32) bool
- func New(code int32, a ...interface{}) error
- func Parse(err error) *errors.Error
- func StatusText(code int32) string
- func Wrap(err error, code int32, a ...interface{}) error
- type Status
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Lang = map[string]*Status{ "en-us": NewStatus("en-us"), "zh-cn": NewStatus("zh-cn"), } )
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.