readme: Simplify pipeline example.

This commit is contained in:
Vladimir Mihailenco 2013-02-17 18:51:53 +02:00
parent 1d39fd8348
commit 075cf971dd
1 changed files with 2 additions and 4 deletions

View File

@ -62,12 +62,10 @@ We can also pipeline two commands together:
set = c.Set("key1", "hello1") set = c.Set("key1", "hello1")
get = c.Get("key2") get = c.Get("key2")
}) })
fmt.Println(err) fmt.Println(err, reqs)
fmt.Println(reqs)
fmt.Println(set) fmt.Println(set)
fmt.Println(get) fmt.Println(get)
// Output: <nil // Output: <nil> [SET key1 hello1: OK GET key2: (nil)]
// Output: <nil> [SET key1 hello1: OK GET key2: (nil)]>
// SET key1 hello1: OK // SET key1 hello1: OK
// GET key2: (nil) // GET key2: (nil)