Documentation ¶ Index ¶ func Errorf(code int, args ...interface{}) *ecode func Register(cm map[int]string) type ECode func Cause(e interface{}) ECode Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Errorf ¶ func Errorf(code int, args ...interface{}) *ecode func Register ¶ func Register(cm map[int]string) Register register ecode message map. Types ¶ type ECode ¶ type ECode interface { // sometimes Error return Code in string form // NOTE: don't use Error in monitor report even it also work for now Error() string // Code get error code. Code() int // Message get code message. Message() string } func Cause ¶ func Cause(e interface{}) ECode Cause cause from error to ecode. Source Files ¶ View all Source files ecode.go Click to show internal directories. Click to hide internal directories.