httpstatus

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(c *gin.Context, status int, err error)

func Message

func Message(c *gin.Context, status int, obj interface{})

Types

type HttpStatus

type HttpStatus struct {
	Code    int         `json:"code" example:"400"`
	Message interface{} `json:"message" example:"Bad Request"`
}

Jump to

Keyboard shortcuts

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