Documentation ¶
Index ¶
Constants ¶
View Source
const ( ContentJson = "application/json" ContentText = "text/plain" )
Variables ¶
This section is empty.
Functions ¶
func RespondWithError ¶
func RespondWithError(w http.ResponseWriter, code int, content_type string, message string)
func ResponseError ¶
func ResponseError(caller, user string, w http.ResponseWriter, err error)
func ResponseHelper ¶
func ResponseHelper(w http.ResponseWriter, http_status int, content_type string, body string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.