Documentation ¶
Index ¶
- func ConvertSliceType(source string, typeName string, tf string) (interface{}, error)
- func ConvertString2Map(tag string, split string, keySplit string) map[string]*string
- func ConvertType(source string, typeName string, tf string) (interface{}, error)
- func ShouldBindWithBody(s any, c *gin.Context) error
- func ShouldBindWithForm(s any, c *gin.Context) error
- func ShouldBindWithQuery(s any, c *gin.Context) error
- func ValidNumberByMax(val any, ml int64, name string) error
- func ValidNumberByMin(val any, ml int64, name string) error
- type BadRequestError
- type ConvertTypeError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertSliceType ¶
func ConvertString2Map ¶
Types ¶
type BadRequestError ¶
type BadRequestError struct {
Msg string
}
func (*BadRequestError) Error ¶
func (e *BadRequestError) Error() string
type ConvertTypeError ¶
type ConvertTypeError struct {
Msg string
}
func (*ConvertTypeError) Error ¶
func (e *ConvertTypeError) Error() string
Click to show internal directories.
Click to hide internal directories.