mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
client: Fix API example
This commit is contained in:
parent
f3d2b5831c
commit
d6459b8b84
@ -38,6 +38,8 @@ func main() {
|
||||
resp, err := kapi.Set(context.Background(), "foo", "bar", nil)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
} else {
|
||||
log.Print(resp)
|
||||
}
|
||||
}
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user