Skip to content

Commit

Permalink
client/v3/README.md: Remove warning
Browse files Browse the repository at this point in the history
  • Loading branch information
lilic committed Jun 2, 2021
1 parent 4c6c506 commit 3aae7d7
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions client/v3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,23 @@
go get go.etcd.io/etcd/client/v3
```

Warning: As etcd 3.5.0 was not yet released, the command above does not work.
After first pre-release of 3.5.0 [#12498](https://github.com/etcd-io/etcd/issues/12498),
etcd can be referenced using:
```
go get go.etcd.io/etcd/client/[email protected]
```

## Get started

Create client using `clientv3.New`:

```go
cli, err := clientv3.New(clientv3.Config{
Endpoints: []string{"localhost:2379", "localhost:22379", "localhost:32379"},
DialTimeout: 5 * time.Second,
})
if err != nil {
// handle error!
import clientv3 "go.etcd.io/etcd/client/v3"

func main() {
cli, err := clientv3.New(clientv3.Config{
Endpoints: []string{"localhost:2379", "localhost:22379", "localhost:32379"},
DialTimeout: 5 * time.Second,
})
if err != nil {
// handle error!
}
defer cli.Close()
}
defer cli.Close()
```

etcd v3 uses [`gRPC`](https://www.grpc.io) for remote procedure calls. And `clientv3` uses
Expand Down

0 comments on commit 3aae7d7

Please sign in to comment.