response

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InternalServerError

func InternalServerError(rw http.ResponseWriter, r *http.Request)

func JSON

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

func MethodNotAllowed

func MethodNotAllowed(rw http.ResponseWriter, r *http.Request)

func NotFound

func NotFound(rw http.ResponseWriter, r *http.Request)

func PanicManager

func PanicManager(next http.Handler) http.Handler

Types

type ErrorMessage

type ErrorMessage struct {
	Msg  string `json:"message"`
	Code int    `json:"code,omitempty"`
}

Jump to

Keyboard shortcuts

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