httpjson

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2022 License: MIT Imports: 5 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(r *http.Request, v interface{}, n int64) error

Decode reads n bytes from request body as JSON-encoded value and stores it in the value pointed to by v.

func Encode

func Encode(w http.ResponseWriter, v interface{}, code int)

Encode writes the JSON encoding of v to the response writer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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