util

package
v0.0.0-...-1599866 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequestLoader

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

RequestLoader loads request (JSON) to struct

func ResponseWriter

func ResponseWriter(w http.ResponseWriter, code int, err error, payload interface{}, rawpayload []byte, rawcontenttype string)

ResponseWriter writes respnse based on respnse code, error, json payload (struct), rawpayload ([]byte) and contenttype

Types

This section is empty.

Jump to

Keyboard shortcuts

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