Grokking Concurrency in Go
0% completed
Panics in Goroutines
Output, with file paths and addresses trimmed:
panic: assignment to entry in nil map goroutine 7 [running]: main.main.func2() .../main.go:17 created by main.main in goroutine 1 .../main.go:15 exit status 2
The author expected the deferred recover in main to catch any panic. It caught nothing. Neither main recovered: nor main finished was printed, and the process ended with exit status 2. The goroutine number in the report, 7 here, can change from one run to the next, even on the same machine.
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%