Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeBody ¶
func DecodeBody(w http.ResponseWriter, body io.ReadCloser, v interface{}) error
DecodeBody decodes a JSON body or write/return an error if an error occurs
Types ¶
type OutputResponse ¶
OutputResponse is a generic output response
func StatusError ¶
func StatusError(status string) *OutputResponse
StatusError Return an error status response
Click to show internal directories.
Click to hide internal directories.