responses

package
Version: v0.0.0-...-5e06dbd Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2020 License: Apache-2.0 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, statusCode int, err error)

ERROR for error-responses

func JSON

func JSON(w http.ResponseWriter, statusCode int, data interface{})

JSON - for successful response

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL