github.com/tourist805/goroutine-task


Install
go get github.com/tourist805/goroutine-task

Documentation

Goroutine Task

The program reads a file and calculates the sum of all numbers by distributing the calculations among goroutines. In order to run you have to specify the number of goroutines.

go run main.go < num_goroutines> 

Программа считает файл и вычиляет сумму всех чисел путем распределения вычислений по горутинам. Для запуска вам необходимо указать количество горутин.

go run main.go < num_goroutines>