Documentation ¶
Overview ¶
Package parallel_downloader provides a simple way to download files in parallel.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateEmptyFile ¶
CreateEmptyFile creates an empty file with the given size
func DownloadChunk ¶
func DownloadChunk(url string, destFile *os.File, offset, size int64, retries int, wg *sync.WaitGroup, ch chan<- error)
DownloadChunk downloads a portion of the file and writes it to the correct offset in the destination file
func GetFileHandle ¶
GetFileHandle opens the file for writing and seeks to the specified offset
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.