1
0
mirror of https://github.com/redis/go-redis.git synced 2025-10-29 05:29:22 +03:00

Merge pull request #1375 from mcg-web/patch-1

[DOC] Add ctx declaration in readme
This commit is contained in:
Vladimir Mihailenco
2020-06-14 14:39:57 +03:00
committed by GitHub

View File

@@ -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",