readme: mention Go modules

This commit is contained in:
Vladimir Mihailenco 2019-10-08 12:11:08 +03:00
parent 9f7317647f
commit 2cd577a047
1 changed files with 3 additions and 3 deletions

View File

@ -27,16 +27,16 @@ Examples: https://godoc.org/github.com/go-redis/redis#pkg-examples.
## Installation ## Installation
Install: 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:
```shell ```shell
go get -u github.com/go-redis/redis go get -u github.com/go-redis/redis/v7
``` ```
Import: Import:
```go ```go
import "github.com/go-redis/redis" import "github.com/go-redis/redis/v7"
``` ```
## Quickstart ## Quickstart