diff --git a/go.mod b/go.mod index e78d691..4f1ccdd 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module github.com/nolwn/go-router +module gitea.nolanhellyer.com/nolan/go-router go 1.15 diff --git a/router_test.go b/router_test.go index f7ee167..1de7bc8 100644 --- a/router_test.go +++ b/router_test.go @@ -2,7 +2,7 @@ package router import ( "fmt" - "io/ioutil" + "io" "net/http" "net/http/httptest" "testing" @@ -115,7 +115,7 @@ func matchAndCheckRoute(r *Router, method string, path string, expectedBody stri return } - body, _ := ioutil.ReadAll(rr.Body) + body, _ := io.ReadAll(rr.Body) if string(body) != string([]byte(expectedBody)) { err = fmt.Errorf(