Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatBindErr ¶
func FormatBindErr(errs ValidErrors) string
Types ¶
type ValidError ¶
func (*ValidError) Error ¶
func (v *ValidError) Error() string
type ValidErrors ¶
type ValidErrors []*ValidError
func BindAndValid ¶
func BindAndValid(c *gin.Context, v interface{}) (ok bool, errs ValidErrors)
BindAndValid 参数绑定并翻译错误
func (*ValidErrors) Error ¶
func (v *ValidErrors) Error() string
func (ValidErrors) Errors ¶
func (v ValidErrors) Errors() (ret []string)
Click to show internal directories.
Click to hide internal directories.