response

package
v0.0.0-...-64e84b0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleError

func HandleError(c *gin.Context, message string)

func Respond

func Respond(c *gin.Context, status int, data interface{})

func RespondBlank

func RespondBlank(c *gin.Context, status int)

func RespondError

func RespondError(c *gin.Context, status int, message string)

func RespondMessage

func RespondMessage(c *gin.Context, status int, message string)

Types

type R

type R struct {
	XMLName xml.Name    `xml:"response" json:"-" yaml:"-"`
	Status  string      `xml:"status" json:"status" yaml:"status"`
	Data    interface{} `xml:"data" json:"data" yaml:"data"`
}

Jump to

Keyboard shortcuts

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