render

package
v0.0.0-...-a9fc698 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(w http.ResponseWriter, handlerErr error, message string, code int)

func Errorf

func Errorf(w http.ResponseWriter, handlerErr error, code int)

func Json

func Json(w http.ResponseWriter, v interface{}, code int)

func JsonOK

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

func NoContent

func NoContent(w http.ResponseWriter)

func Ok

func Ok(w http.ResponseWriter, body []byte)

func Render

func Render(w http.ResponseWriter, body []byte, code int)

------------------- Render -------------------

Types

type AppHttpError

type AppHttpError struct {
	// contains filtered or unexported fields
}

------------------- appHttpError -------------------

Jump to

Keyboard shortcuts

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