Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandlerFunc ¶
func HandlerFunc(f func(w JSONResponseWriter, r *JSONRequest)) http.Handler
func Wrap ¶
func Wrap(w http.ResponseWriter, r *http.Request) (JSONResponseWriter, *JSONRequest)
Types ¶
type JSONRequest ¶
func (*JSONRequest) Decode ¶
func (j *JSONRequest) Decode(v interface{}) error
type JSONResponseWriter ¶
type JSONResponseWriter struct { http.ResponseWriter // contains filtered or unexported fields }
func (JSONResponseWriter) Encode ¶
func (j JSONResponseWriter) Encode(v interface{}) error
Click to show internal directories.
Click to hide internal directories.