h

package module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2019 License: MIT Imports: 3 Imported by: 0

README

H Logo

Helping you make simple APIs with the standard Go net/http library.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JsonBody

func JsonBody(r *http.Response, target interface{}) error

Unmarshal http.Request.Body into a target struct, closes Body.

func JsonResponse

func JsonResponse(w http.ResponseWriter, val interface{}, code ...int)

Respond to an HTTP request by marshaling a value to JSON

Types

This section is empty.

Jump to

Keyboard shortcuts

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