Documentation
¶
Index ¶
- func Bind[TIn any](s Server, handler func(*gin.Context, TIn) error) gin.HandlerFunc
- func Created[TOut any](s Server, ctx *gin.Context, data TOut, location string, args ...any) error
- func File(ctx *gin.Context, filepath string) error
- func NoContent(ctx *gin.Context) error
- func Ok[TOut any](ctx *gin.Context, data TOut) error
- func Send(s Server, handler func(*gin.Context) error) gin.HandlerFunc
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bind ¶
Bind the request to the given TIn and handle errors if any by setting the appropriate status.
Types ¶
Click to show internal directories.
Click to hide internal directories.