Documentation
¶
Overview ¶
The "config" functionality common to many parts of the application. A part of the toolbox (utility) methods for the rest-api-go application. Governed by the license that can be found in the LICENSE file
The "toolbox" functionality common to many parts of the application. A part of the toolbox (utility) methods for the rest-api-go application. Governed by the license that can be found in the LICENSE file
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RespondWithError ¶
func RespondWithError(w http.ResponseWriter, code int, message string)
respondWithError generates JSON formatted response values for error messages
func RespondWithJSON ¶
func RespondWithJSON(w http.ResponseWriter, code int, payload interface{})
respondWithJSON generates JSON formatted response values for non error messages
Types ¶
Click to show internal directories.
Click to hide internal directories.