示例#1
0
文件: god_cli.go 项目: rhino1998/god
func reverseSliceIndex(conn *client.Conn, args []string) {
	for _, item := range conn.ReverseSliceIndex([]byte(args[1]), mustAtoi(args[2]), mustAtoi(args[3])) {
		fmt.Printf("%v: %v => %v\n", item.Index, string(item.Key), decode(item.Value))
	}
}