responses

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

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

Go to latest
Published: Dec 20, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPError

func HTTPError(w http.ResponseWriter, r *http.Request, statusCode int, message string) error

func JSON

func JSON(w http.ResponseWriter, r *http.Request, statusCode int, data interface{}) error

Types

type ErrorMesssage

type ErrorMesssage struct {
	Message string `json:"message"`
}

type Map

type Map map[string]interface{}

Jump to

Keyboard shortcuts

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