render

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: Apache-2.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 Data

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

func Error

func Error(w http.ResponseWriter, err error)

func Html

func Html(w http.ResponseWriter, t string)

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{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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