Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTTP ¶
func HTTP(handle HandleWithError) httprouter.Handle
HTTP runs HandleWithError and converts it to httprouter.Handle. The conversion is needed because httprouter.Router needs httprouter.Handle in its signature.
Types ¶
type HandleWithError ¶
type HandleWithError func(http.ResponseWriter, *http.Request, httprouter.Params) error
HandleWithError is an httprouter.Handle that returns an error.
Click to show internal directories.
Click to hide internal directories.