Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct { // error code num not used at present! all code return 1 Code int // the front define name Param string // RuleName current error validator name RuleName string // the struct key name if error on struct field Key string // error msg if define custom msg will used preferred Msg string // Type the error type: global error not happened on the detail field , not contain any field info, the Key and param maybe empty Type ErrorType // CauseErr the real error msg used for log CauseErr error }
Error validator error support code number、filed param、filed key、
Click to show internal directories.
Click to hide internal directories.