From 2cd577a04791e4aec0237d6107eaffe5886b6114 Mon Sep 17 00:00:00 2001 From: Vladimir Mihailenco Date: Tue, 8 Oct 2019 12:11:08 +0300 Subject: [PATCH] readme: mention Go modules --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c7a77829..51ed92c5 100644 --- a/README.md +++ b/README.md @@ -27,16 +27,16 @@ Examples: https://godoc.org/github.com/go-redis/redis#pkg-examples. ## 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 -go get -u github.com/go-redis/redis +go get -u github.com/go-redis/redis/v7 ``` Import: ```go -import "github.com/go-redis/redis" +import "github.com/go-redis/redis/v7" ``` ## Quickstart