From 78ac5c98424c249711fce090874e940cdf41c948 Mon Sep 17 00:00:00 2001 From: holys Date: Thu, 17 Jul 2014 02:18:53 +0800 Subject: [PATCH] fix unprintable character --- cmd/ledis-cli/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/ledis-cli/main.go b/cmd/ledis-cli/main.go index 4149055..e4e1bc2 100644 --- a/cmd/ledis-cli/main.go +++ b/cmd/ledis-cli/main.go @@ -66,7 +66,7 @@ func printReply(cmd string, reply interface{}) { case string: fmt.Printf("%s", reply) case []byte: - fmt.Printf("%s", string(reply)) + fmt.Printf("%q", reply) case nil: fmt.Printf("(nil)") case ledis.Error: