render

package
v0.0.0-...-7ae82dc Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2020 License: LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ResponseErrorMessageAsHint bool

Functions

func Data

func Data(w http.ResponseWriter, v interface{})

func Error

func Error(w http.ResponseWriter, err error)

func InvalidParam

func InvalidParam(w http.ResponseWriter, name string, value interface{})

func JSON

func JSON(w http.ResponseWriter, v interface{}, status int)

JSON writes the json-encoded error message to the response with a 400 bad request status code.

Types

This section is empty.

Jump to

Keyboard shortcuts

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