Documentation ¶
Index ¶
- Variables
- func SetCode(v *int, code int)
- func SetData(v *interface{}, data interface{})
- func SetErrCode(c *int, m *string, code int)
- func SetError(c *[]string, errs ...error)
- func SetMeta(v *interface{}, meta interface{})
- func SetMsg(v *string, msg string, msgArgs ...interface{})
- type Error
- type ErrorDefault
- type Response
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CodeMsgMap = map[int]string{} ShowMore = true )
Functions ¶
func SetErrCode ¶
Types ¶
type ErrorDefault ¶
func (*ErrorDefault) Code ¶
func (v *ErrorDefault) Code() int
func (*ErrorDefault) Error ¶
func (v *ErrorDefault) Error() string
Click to show internal directories.
Click to hide internal directories.