utils

package
v0.0.0-...-fb2c725 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 3 Imported by: 0

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL