This project is a demo how to download files from internet with parallel method.
HTTP has a header called Range
that can be used to download a file from a specific byte to another byte. So we can download a file in parallel by splitting it to some parts and download each part in a thread. after all parts downloaded, we can merge them to a single file.
Sometimes, the server that we download from it, has a limit for download speed. So we can download a file in parallel to bypass this limit.
I'm already write a simple code on main.go file