handlers

package
v0.0.0-...-bea3340 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadBodyAndUnmarshalData

func ReadBodyAndUnmarshalData(r *http.Request, v interface{}) error

ReadBodyAndUnmarshalData helper function

func ResponseError

func ResponseError(w http.ResponseWriter, message string, code int)

ResponseError to respond some errors

func ResponseJSON

func ResponseJSON(w http.ResponseWriter, data interface{})

ResponseJSON to respond with some JSON

Types

This section is empty.

Jump to

Keyboard shortcuts

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