Hacker News new | ask | show | jobs
by kisielk 4728 days ago
Once main exits the program does as well, so all other goroutines will be terminated.
1 comments

True. Leaks don't matter for programs that exit immediately. I was pointing it out because it is often relevant when using the timeout pattern.