response

package
v0.0.0-...-10c636f Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2020 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResponseJSON200

func ResponseJSON200(w http.ResponseWriter, body interface{})

ResponseJSON200 return a 200 HTTP response width content-type json

func ResponseJSON400

func ResponseJSON400(w http.ResponseWriter, body interface{})

ResponseJSON400 return a 400 HTTP response width content-type json

Types

type ResponseBody

type ResponseBody struct {
	Data interface{} `json:"data"`
}

ResponseBody is a general struct to helper use to response

Jump to

Keyboard shortcuts

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