app

package
v0.0.0-...-7c1be7f Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Ok = OkResponse{"ok"}

Functions

This section is empty.

Types

type ErrorResponse

type ErrorResponse struct {
	Result string `json:"result"`
	Msg    string `json:"msg,omitempty"`
}

type Gin

type Gin struct {
	C *gin.Context
}

func (*Gin) WriteError

func (g *Gin) WriteError(in error)

func (*Gin) WriteJson

func (g *Gin) WriteJson(httpCode int, data interface{})

Response setting gin.JSON

type OkResponse

type OkResponse struct {
	Result string `json:"result"`
}

Jump to

Keyboard shortcuts

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