Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RespondError ¶
func RespondError(w http.ResponseWriter, statusCode int, message string)
RespondError sends a standard JSON error response
func RespondJSON ¶
func RespondJSON(w http.ResponseWriter, statusCode int, message string, data any)
RespondJSON sends a standard JSON success response
Types ¶
type ErrorResponse ¶
type SuccessResponse ¶
Click to show internal directories.
Click to hide internal directories.