helpers

package
v0.0.0-...-a9544e9 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadRequestBody

func ReadRequestBody(r *http.Request, i interface{}) error

ReadRequestBody read request body values and bind to the interface

func RenderErr

func RenderErr(w http.ResponseWriter, err error)

RenderErr return error in http response

func RenderJSON

func RenderJSON(w http.ResponseWriter, obj interface{})

RenderJSON return json object in the http response

Types

This section is empty.

Jump to

Keyboard shortcuts

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