Skip to content

Commit af31c9a

Browse files
committed
docs: update README with v5 usage and installation instructions
1 parent 8335ce8 commit af31c9a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This package aims to make it easier to configure your routes and middleware, but
1313
Run 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

3333
func 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

7474
func 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

108108
func 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

137137
func 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

164164
func 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

192192
func myHandler := func(w http.ResponseWriter, r *http.Request) {

0 commit comments

Comments
 (0)