forked from mirror/redis
readme: Fix example indentation.
This commit is contained in:
parent
a07e186fb3
commit
1d39fd8348
10
README.md
10
README.md
|
@ -36,12 +36,12 @@ Let's start with connecting to Redis using TCP:
|
||||||
|
|
||||||
or using Unix socket:
|
or using Unix socket:
|
||||||
|
|
||||||
client := redis.NewUnixClient("/tmp/redis.sock", "", -1)
|
client := redis.NewUnixClient("/tmp/redis.sock", "", -1)
|
||||||
defer client.Close()
|
defer client.Close()
|
||||||
|
|
||||||
ping := client.Ping()
|
ping := client.Ping()
|
||||||
fmt.Println(ping.Err(), ping.Val())
|
fmt.Println(ping.Err(), ping.Val())
|
||||||
// Output: <nil> PONG
|
// Output: <nil> PONG
|
||||||
|
|
||||||
Then we can start sending commands:
|
Then we can start sending commands:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue