@@ -13,7 +13,7 @@ This package aims to make it easier to configure your routes and middleware, but
1313Run the following command from your project root directory to install ** rmhttp** into your project.
1414
1515``` bash
16- go get github.com/rmhubbert/rmhttp
16+ go get github.com/rmhubbert/rmhttp/v5
1717```
1818
1919## Quickstart
@@ -27,7 +27,7 @@ import (
2727 " log"
2828 " net/http"
2929
30- " github.com/rmhubbert/rmhttp"
30+ " github.com/rmhubbert/rmhttp/v5 "
3131)
3232
3333func myHandler := func (w http.ResponseWriter , r *http.Request ) {
@@ -68,7 +68,7 @@ import (
6868 " log"
6969 " net/http"
7070
71- " github.com/rmhubbert/rmhttp"
71+ " github.com/rmhubbert/rmhttp/v5 "
7272)
7373
7474func my404Handler := func (w http.ResponseWriter , r *http.Request ) {
@@ -102,7 +102,7 @@ import (
102102 " log"
103103 " net/http"
104104
105- " github.com/rmhubbert/rmhttp"
105+ " github.com/rmhubbert/rmhttp/v5 "
106106)
107107
108108func myHandler := func (w http.ResponseWriter , r *http.Request ) {
@@ -131,7 +131,7 @@ import (
131131 " log"
132132 " net/http"
133133
134- " github.com/rmhubbert/rmhttp"
134+ " github.com/rmhubbert/rmhttp/v5 "
135135)
136136
137137func myHandler := func (w http.ResponseWriter , r *http.Request ) {
@@ -158,7 +158,7 @@ import (
158158 " log"
159159 " net/http"
160160
161- " github.com/rmhubbert/rmhttp"
161+ " github.com/rmhubbert/rmhttp/v5 "
162162)
163163
164164func myHandler := func (w http.ResponseWriter , r *http.Request ) {
@@ -185,8 +185,8 @@ import (
185185 " log"
186186 " net/http"
187187
188- " github.com/rmhubbert/rmhttp"
189- " github.com/rmhubbert/rmhttp/middleware/recoverer"
188+ " github.com/rmhubbert/rmhttp/v5 "
189+ " github.com/rmhubbert/rmhttp/v5/pkg/ middleware/recoverer"
190190)
191191
192192func myHandler := func (w http.ResponseWriter , r *http.Request ) {
0 commit comments