diff --git a/client/go/ledis-cli/main.go b/client/go/ledis-cli/main.go index 5cb94df..2be69bc 100644 --- a/client/go/ledis-cli/main.go +++ b/client/go/ledis-cli/main.go @@ -68,12 +68,15 @@ func printReply(reply interface{}) { fmt.Printf("%s", string(reply)) case []interface{}: for i, v := range reply { - fmt.Printf("%d) ", i) + fmt.Printf("%d) ", i+1) if v == nil { fmt.Printf("(nil)") } else { fmt.Printf("%q", v) } + if i != len(reply)-1 { + fmt.Printf("\n") + } } default: fmt.Printf("invalid ledis reply")