response

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbortWithStatusJSON

func AbortWithStatusJSON(c *gin.Context)

func BadGateway

func BadGateway(c *gin.Context, err error)

func InternalServerError

func InternalServerError(c *gin.Context, err error)

func Json

func Json(w *http.ResponseWriter, status int, data interface{})

func NotFound

func NotFound(c *gin.Context, err error)

func Success

func Success(c *gin.Context, message string, data interface{})

func UnprocessableEntity

func UnprocessableEntity(c *gin.Context, errors map[string][]string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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