render

package
v1.8.4 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ResponseErrorMessageAsHint bool

Response internal error msg as hint

Functions

func BadRequest

func BadRequest(w http.ResponseWriter, err error)

func Error

func Error(w http.ResponseWriter, err error)

func JSON

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

func Text

func Text(w http.ResponseWriter, t string)

func WrapResponse

func WrapResponse(wrapData bool) func(http.Handler) http.Handler

Types

type H

type H map[string]interface{}

Jump to

Keyboard shortcuts

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