You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: result.go
    path of file: ./repos/streamdal/apps/server/vendor/github.com/redis/go-redis/v9
    
    the code of the file until where you have to start completion: package redis

import "time"

// NewCmdResult returns a Cmd initialised wi
    
func NewScanCmdResult(keys []string, cursor uint64, err error) *ScanCmd {
	var cmd ScanCmd
	cmd.page = keys
	cmd.cursor = cursor
	cmd.SetErr(err)
	return &cmd
}