mirror of
https://github.com/redis/go-redis.git
synced 2025-06-12 14:21:52 +03:00
readme: add go mod init
This commit is contained in:
@ -30,7 +30,8 @@ Examples: https://godoc.org/github.com/go-redis/redis#pkg-examples.
|
|||||||
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:
|
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/v7
|
go mod init github.com/my/repo
|
||||||
|
go get github.com/go-redis/redis/v7
|
||||||
```
|
```
|
||||||
|
|
||||||
Import:
|
Import:
|
||||||
|
Reference in New Issue
Block a user