diff options
author | Doug Black <dblack@twilio.com> | 2014-01-26 09:32:11 -0800 |
---|---|---|
committer | Doug Black <dblack@twilio.com> | 2014-01-26 09:32:11 -0800 |
commit | 87a21188bddf8654d2eb8850003a8ceb459a4439 (patch) | |
tree | 27e2a76707ab68560d0dc9ae4d9053c9a539ef35 /core.go | |
parent | fixes from comments (diff) | |
download | sleepy-87a21188bddf8654d2eb8850003a8ceb459a4439.tar.gz sleepy-87a21188bddf8654d2eb8850003a8ceb459a4439.tar.bz2 sleepy-87a21188bddf8654d2eb8850003a8ceb459a4439.zip |
use built in type
Diffstat (limited to 'core.go')
-rw-r--r-- | core.go | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -27,9 +27,7 @@ func (api *Api) Abort(rw http.ResponseWriter, statusCode int) { rw.WriteHeader(statusCode) } -type HandleFunc func(http.ResponseWriter, *http.Request) - -func (api *Api) requestHandler(resource Resource) HandleFunc { +func (api *Api) requestHandler(resource Resource) http.HandlerFunc { return func(rw http.ResponseWriter, request *http.Request) { var data interface{} |