mirror of https://github.com/go-redis/redis.git
readme: mention Go modules
This commit is contained in:
parent
9f7317647f
commit
2cd577a047
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue