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: crack-files.go
    path of file: ./repos/sliver/client/command/crack
    
    the code of the file until where you have to start completion: package crack

/*
	Sliver Implant Framework
	Copyright (C) 2022  Bishop Fox

	This program is free software: you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation, either version 3 of the License, or
	(at your option) any later version.

	This program is 
    
func chunkReader(wordlistReader io.Reader, chunkSize int64, chunks chan []byte) error {
	defer close(chunks)
	start := int64(0)
	tmpFile, err := os.CreateTemp("", "sliver-wordlist")
	if err != nil {
		return err
	}
	defer tmpFile.Close()
	compressor, _ := zstd.NewWriter(tmpFile, zstd.WithEncoderLevel(zstd.SpeedBetterCompression))
	for {
		readBuf := make([]byte, 32*1024*1024) // 32MB
		readN, readErr := wordlistReader.Read(readBuf)
		if readErr != nil && readErr != io.EOF {
			return err
		}
		if readN != 0 {
			_, err := compressor.Write(readBuf[:readN])
			if err != nil {
				return err
			}
			compressor.Flush()
			tmpFileStat, err := os.Stat(tmpFile.Name())
			if err != nil {
				return err
			}
			if tmpFileStat.Size()-start >= chunkSize {
				stop := start + chunkSize
				chunk, err := readChunkAt(tmpFile, start, chunkSize)
				if err != nil {
					return err
				}
				chunks <- chunk
				start = stop
			}
		}
		if readErr == io.EOF {
			chunk, err := readChunkAt(tmpFile, start, chunkSize)
			if err != nil {
				return err
			}
			chunks <- chunk
			return nil
		}
	}
}