communications

package
v0.0.0-...-07a32c6 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2021 License: GPL-3.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReturnJSONResponse

func ReturnJSONResponse(writer http.ResponseWriter, response []byte, jsonErr error)

ReturnJSONResponse takes in a response and error generated preferably by a json marshal operation and writes a response with the content-type set appropriately if there is no error. The response will return a 500 if error is not nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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