Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( OK = New(0, "OK") Unknown = New(-1, "System Exception") )
Functions ¶
Types ¶
type Code ¶
type Code interface {
error
// V returns the code value
Val() int
// M returns the code message
Msg() string
// Wrap returns a newly allocated code with the same value.
Wrap(format string, args ...any) Code
}
Code the code definition for API
Click to show internal directories.
Click to hide internal directories.