helpers

package
Version: v0.0.0-...-6bf1803 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatError

func FormatError(w http.ResponseWriter, message string, code int)

FormatError returns an error message with the given status code

func FormatResponse

func FormatResponse(w http.ResponseWriter, value interface{}, code int)

FormatResponse writes a json body to the response writter

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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