Merge pull request #397 from go-redis/feature/remove-forced-import

Remove static import
This commit is contained in:
Vladimir Mihailenco 2016-10-12 15:51:27 +03:00 committed by GitHub
commit 11333cbc26
2 changed files with 26 additions and 2 deletions

View File

@ -22,7 +22,31 @@ Examples: http://godoc.org/gopkg.in/redis.v5#pkg-examples.
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

View File

@ -1,4 +1,4 @@
package redis // import "gopkg.in/redis.v5"
package redis
import (
"fmt"