func prevIndex(conn *client.Conn, args []string) { if key, value, index, existed := conn.PrevIndex([]byte(args[1]), *(mustAtoi(args[2]))); existed { fmt.Printf("%v: %v => %v\n", index, string(key), decode(value)) } }