I am a beginner in Go.
I would like to use the code snippet from : How would you define a pool of goroutines to be executed at once in Golang? (this answer)
I need to check the error for each cmd executed as in :
out, err := exec.Command(cmd,params).Output()
But, in the snippet there is no error checking:
tasks <- exec.Command("zenity", "--info", "--text='Hello from iteration n."+strconv.Itoa(i)+"'")
How can check for errors when the cmd executes ?