Documentation ¶
Overview ¶
Package common provides common functions for the api.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteEmpty ¶
func WriteEmpty(w http.ResponseWriter)
WriteEmpty returns a 204 response with no body.
func WriteJSONResponse ¶
func WriteJSONResponse(w http.ResponseWriter, data any, statusCode int)
WriteJSONResponse returns any data provided as a JSON body to the caller.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.