Parcourir la source

client: Fix API example

Marin Atanasov Nikolov il y a 10 ans
Parent
commit
d6459b8b84
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      client/README.md

+ 2 - 0
client/README.md

@@ -38,6 +38,8 @@ func main() {
 	resp, err := kapi.Set(context.Background(), "foo", "bar", nil)
 	resp, err := kapi.Set(context.Background(), "foo", "bar", nil)
 	if err != nil {
 	if err != nil {
 		log.Fatal(err)
 		log.Fatal(err)
+	} else {
+		log.Print(resp)
 	}
 	}
 }
 }
 ```
 ```