Skip to content

Commit

Permalink
readme: mention Go modules
Browse files Browse the repository at this point in the history
  • Loading branch information
vmihailenco committed Oct 8, 2019
1 parent 9f73176 commit 2cd577a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2cd577a

Please sign in to comment.