response

package
v0.0.0-...-3e06d77 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2018 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OuputJson

func OuputJson(w http.ResponseWriter, jr *JsonResponse)

Types

type JsonResponse

type JsonResponse struct {
	Code int
	Msg  string
	Data map[string]string
}

type Output

type Output struct {
	ResponseWriter http.ResponseWriter
	Status         int
}

func (*Output) Json

func (output *Output) Json(data interface{}, hasIndent bool, coding bool) error

func (*Output) WriteString

func (output *Output) WriteString(content string)

func (*Output) Xml

func (output *Output) Xml(data interface{}) error

Jump to

Keyboard shortcuts

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