render

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RespondError

func RespondError(w http.ResponseWriter, status int, err interface{})

RespondError makes the error response with payload as json format

func RespondErrorWithTitle added in v0.0.6

func RespondErrorWithTitle(w http.ResponseWriter, status int, message, title string)

RespondErrorWithTitle makes the error response with title with payload as json format

func RespondJSON

func RespondJSON(w http.ResponseWriter, status int, payload interface{})

RespondJSON makes the response with payload as json format

Types

This section is empty.

Jump to

Keyboard shortcuts

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