From 87a21188bddf8654d2eb8850003a8ceb459a4439 Mon Sep 17 00:00:00 2001 From: Doug Black Date: Sun, 26 Jan 2014 09:32:11 -0800 Subject: use built in type --- core.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'core.go') diff --git a/core.go b/core.go index cf34545..c8d7ca9 100644 --- a/core.go +++ b/core.go @@ -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{} -- cgit