Skip to content

Commit 2cd577a

Browse files
committed
readme: mention Go modules
1 parent 9f73176 commit 2cd577a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@ Examples: https://godoc.org/github.com/go-redis/redis#pkg-examples.
2727

2828
## Installation
2929

30-
Install:
30+
go-redis requires a Go version with [Modules](https://github.com/golang/go/wiki/Modules) support and uses import versioning. So please make sure to initialize a Go module before installing go-redis:
3131

3232
```shell
33-
go get -u github.com/go-redis/redis
33+
go get -u github.com/go-redis/redis/v7
3434
```
3535

3636
Import:
3737

3838
```go
39-
import "github.com/go-redis/redis"
39+
import "github.com/go-redis/redis/v7"
4040
```
4141

4242
## Quickstart

0 commit comments

Comments
 (0)