func sliceIndex(conn *client.Conn, args []string) { for _, item := range conn.SliceIndex([]byte(args[1]), mustAtoi(args[2]), mustAtoi(args[3])) { fmt.Printf("%v: %v => %v\n", item.Index, string(item.Key), decode(item.Value)) } }