Golang, Performance, Programming.
we create a small number of workers (eight in this case) which fetch tasks from a channel. We also use a sync.WaitGroup to make sure all workers are done before exiting. func createWorkers(width, height int) image.Image { m := image.NewGray(image.Rect(0, 0, width, height)) type px struct{ x, y int