A concurrent job runner

The problem

Build a program that reads a list of jobs, runs them with a pool of worker goroutines, collects the results through channels and prints a report in the order of the jobs, including the jobs that failed.

Requirements

Technologies

Step by step

  1. Define the job and result types and write one worker function.
  2. Start the workers, send the jobs and close the jobs channel.
  3. Collect all results and store each in its position.
  4. Print the ordered report and the totals.

Expected result

A program that uses several goroutines and still prints the same report on every run.

How it is evaluated

Ways to improve it