http_json

package module
v0.0.0-...-a7baa06 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteErrJSON

func WriteErrJSON(w http.ResponseWriter, err error)

func WriteErrJSONAPI

func WriteErrJSONAPI(w http.ResponseWriter, err error)

func WriteJSON

func WriteJSON(w http.ResponseWriter, code int, data interface{})

func WriteJSONAPI

func WriteJSONAPI(w http.ResponseWriter, code int, data interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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