Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type JSONRequest ¶
func WrapJSONRequest ¶
func WrapJSONRequest(r *http.Request) *JSONRequest
type JSONResponseWriter ¶
type JSONResponseWriter interface {
http.ResponseWriter
WriteJSON(interface{}) error
}
func WrapJSONResponseWriter ¶
func WrapJSONResponseWriter(w http.ResponseWriter, opts ...WrapJSONResponseWriterOption) JSONResponseWriter
type WrapJSONResponseWriterOption ¶
func SetContentType ¶
func SetContentType(ct string) WrapJSONResponseWriterOption
Click to show internal directories.
Click to hide internal directories.