mirror of https://github.com/go-redis/redis.git
Merge pull request #397 from go-redis/feature/remove-forced-import
Remove static import
This commit is contained in:
commit
11333cbc26
26
README.md
26
README.md
|
@ -22,7 +22,31 @@ Examples: http://godoc.org/gopkg.in/redis.v5#pkg-examples.
|
||||||
|
|
||||||
Install:
|
Install:
|
||||||
|
|
||||||
go get gopkg.in/redis.v5
|
```shell
|
||||||
|
go get gopkg.in/redis.v5
|
||||||
|
```
|
||||||
|
|
||||||
|
Import:
|
||||||
|
|
||||||
|
```go
|
||||||
|
import "gopkg.in/redis.v5"
|
||||||
|
```
|
||||||
|
|
||||||
|
## Vendoring
|
||||||
|
|
||||||
|
If you are using a vendoring tool with support for semantic versioning
|
||||||
|
e.g. [glide](https://github.com/Masterminds/glide), you can import this
|
||||||
|
package via its GitHub URL:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
- package: github.com/go-redis/redis
|
||||||
|
version: ^5.0.0
|
||||||
|
```
|
||||||
|
|
||||||
|
WARNING: please note that by importing `github.com/go-redis/redis`
|
||||||
|
directly (without semantic versioning constrol) you are in danger of
|
||||||
|
running in the breaking API changes. Use carefully and at your own
|
||||||
|
risk!
|
||||||
|
|
||||||
## Quickstart
|
## Quickstart
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue