Multi-threaded Downloads in Go

from blog Blog on hjr265.me, | ↗ original
The word multi-threaded here is an artifact of how download managers in the past worked. The idea is to download a large file in parts, in parallel, over multiple TCP streams at once. In certain circumstances this can speed up the download significantly. Let’s start with a naive way of downloading a file in Go: 1 2 3 4 5 6 7 8 9 10 11 12 // Error...