Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RespondWithErr ¶
func RespondWithErr(w http.ResponseWriter, status int, err error)
RespondWithErr responds using a JSON-serialized error message.
func RespondWithJSON ¶
func RespondWithJSON(w http.ResponseWriter, status int, v any)
RespondWithJSON responds with a JSON-serialized value.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.