Demonstrates concurrent downloads in Go via a worker pattern. The number of workers is parameterized. Based on the Go by Example Worker Pools example
Generates a workload by generating random search queries to google and generates an MD5 hash of the response contents. The number of parallel workers are spawned and start processing the jobs as they are sent in via channels.
main.go
is the entrypoint
$ go run main.go
runs as script
$ go build
$ ./concurrent-downloader
$ go install
resulting
concurrent-downloader
binary in$GOPATH/bin