diff --git a/go.mod b/go.mod index b5906bd..75aa228 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module github.com/jr-dev-league/go-router -go 1.15 \ No newline at end of file +go 1.15 diff --git a/router.go b/router.go index 6f19c09..bbdfd43 100644 --- a/router.go +++ b/router.go @@ -143,7 +143,7 @@ func (r *Router) Handler(req *http.Request) (h http.Handler, pattern string) { // // In the case of this router, all it needs to do is lookup the Handler that has been saved at a given // path and then call its ServeHTTP. -func (r *Router) ServeHTTP(w http.ResponseWriter, req *http.Request) { +func (r Router) ServeHTTP(w http.ResponseWriter, req *http.Request) { method := req.Method path := req.URL.Path var handler http.Handler