Documentation ¶
Index ¶
- func Chain(hf http.HandlerFunc, mw ...MiddleWare) http.HandlerFunc
- func Created(rw http.ResponseWriter, r *http.Request, id string)
- func Decode(rw http.ResponseWriter, r *http.Request, data interface{}) (err error)
- func Echo(message string) http.HandlerFunc
- func FileServer(prefix, dirname string) http.Handler
- func Respond(rw http.ResponseWriter, r *http.Request, data interface{}, status int)
- type MiddleWare
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Chain ¶
func Chain(hf http.HandlerFunc, mw ...MiddleWare) http.HandlerFunc
func Echo ¶
func Echo(message string) http.HandlerFunc
func FileServer ¶
Types ¶
type MiddleWare ¶
type MiddleWare func(http.HandlerFunc) http.HandlerFunc
Click to show internal directories.
Click to hide internal directories.