Documentation ¶
Index ¶
- func AutomaticBinding(v bool) gin.HandlerFunc
- func Handle[T any, M any](handler func(*gin.Context, *T) (M, error)) gin.HandlerFunc
- func IsEmpty(v any) bool
- func ReponseRender(r func(*gin.Context, any, *Error)) gin.HandlerFunc
- func RequestBeforeHook(hook ...func(*gin.Context, any, error) error) gin.HandlerFunc
- type Empty
- type Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutomaticBinding ¶
func AutomaticBinding(v bool) gin.HandlerFunc
AutomaticBinding enable/disable automatic binding and parameter validation
func ReponseRender ¶
ReponseRender custom response output
func RequestBeforeHook ¶
// RequestBeforeHook The input parameter error represents a binding verification error. // If you want to prevent this error, you need to return the error as nil, otherwise, please return the error of the input parameter
Types ¶
Click to show internal directories.
Click to hide internal directories.