Skip to content

Commit

Permalink
Merge pull request redis#1375 from mcg-web/patch-1
Browse files Browse the repository at this point in the history
[DOC] Add ctx declaration in readme
  • Loading branch information
vmihailenco authored Jun 14, 2020
2 parents 789ee04 + bebee12 commit 5b4d00c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ import "github.com/go-redis/redis/v8"
## Quickstart

```go
import (
"context"
"github.com/go-redis/redis/v8"
)

var ctx = context.Background()

func ExampleNewClient() {
rdb := redis.NewClient(&redis.Options{
Addr: "localhost:6379",
Expand Down

0 comments on commit 5b4d00c

Please sign in to comment.