Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JSONResponse ¶
func JSONResponse(w http.ResponseWriter, statusCode int, v any) error
func MakeHandlerFunc ¶
func MakeHandlerFunc(fn functionWithError) gin.HandlerFunc
Types ¶
type CustomError ¶
type CustomError struct {
Message string `json:"message"`
}
func (*CustomError) Error ¶
func (c *CustomError) Error() string
type MessageResponse ¶
type MessageResponse struct {
Message string `json:"message"`
}
Click to show internal directories.
Click to hide internal directories.