json

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMultipleJSONValue = errors.New("json: body must have only a single json value")
)

Functions

func ReadJSON

func ReadJSON(w http.ResponseWriter, r *http.Request, data interface{}) error

func WriteJSON

func WriteJSON(w http.ResponseWriter, status int, data interface{}, headers ...http.Header) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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