Back to

Package responseutil

Latest Go to latest

The highest tagged major version is .

Published: Jan 18, 2020 | License: Apache-2.0 | Module:


func GinSendResponse

func GinSendResponse(c *gin.Context, err error, data interface{})


type Gin

type Gin struct {
	Ctx *gin.Context

type Response

type Response struct {
	Code    int         `json:"code"`
	Message string      `json:"msg"`
	Data    interface{} `json:"data"`

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier