writer

package
v0.0.0-...-6cd7eb2 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSONMarshal

func JSONMarshal(data interface{}, safeEncoding, indentJSON bool) ([]byte, error)

JSONMarshal converts the data and converts special characters such as &

func SendError

func SendError(w http.ResponseWriter, error []error, indentJSON bool)

SendError creates an ErrorResponse message and sets it to the user using SendJSONResponse

func SendJSONResponse

func SendJSONResponse(w http.ResponseWriter, status int, data interface{}, qo *odata.QueryOptions, indentJSON bool)

SendJSONResponse sends the desired message to the user the message will be marshalled into JSON

Types

This section is empty.

Jump to

Keyboard shortcuts

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