returnjson

package
v0.0.0-...-678b904 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2019 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMassage

func NewMassage(servertype int, massage string) *massageJson

init massage struct return *MassageJson

func PutErrorJson

func PutErrorJson(err error, w http.ResponseWriter)

is error!= nil put Json error

func PutJson

func PutJson(w http.ResponseWriter, imassageJson ImassageJson)

put json client

Types

type ImassageJson

type ImassageJson interface {
	Massage() []byte
	NewImassage(servertype int, massage string) ImassageJson
}

ImassageJson... 返回信息接口定义

Jump to

Keyboard shortcuts

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