Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderError ¶
func RenderError(w http.ResponseWriter, status int, err error, opts *ErrorOptions)
func RenderJSON ¶
func RenderJSON(w http.ResponseWriter, status int, data interface{})
Types ¶
type ErrorOptions ¶
type ErrorOptions struct {
Code *int `json:"code,omitempty"`
}
type ErrorResponse ¶
Click to show internal directories.
Click to hide internal directories.