Documentation
¶
Overview ¶
Package render provides HTTP output rendering helper functions.
Index ¶
Constants ¶
View Source
const JSONContentType = "application/json"
JSONContentType represents MIME type for JSON content.
Variables ¶
This section is empty.
Functions ¶
func JSONError ¶
func JSONError(rw http.ResponseWriter, code int, reason string)
JSONError writes a JSON error message.
func JSONErrorf ¶
func JSONErrorf(rw http.ResponseWriter, code int, format string, args ...any)
JSONErrorf writes a JSON error message.
func JSONInternalServerError ¶
func JSONInternalServerError(rw http.ResponseWriter)
JSONInternalServerError writes a JSON internal server error.
Types ¶
Click to show internal directories.
Click to hide internal directories.