Documentation ¶
Index ¶
Constants ¶
View Source
const ( StatusOK = "OK" StatusError = "Error" )
Variables ¶
This section is empty.
Functions ¶
func DataResponse ¶
func DataResponse(w http.ResponseWriter, body any, httpStatusCode int) error
func ErrorResponse ¶
func ErrorResponse(w http.ResponseWriter, message string, httpStatusCode int)
Types ¶
Click to show internal directories.
Click to hide internal directories.