Yes, in the first example, you will skip 9 goroutines.
I do not believe that there are any tools to tell you this.
it would be interesting to do if there is a way to query all existing non-systemic (i.e. gc) goroutines.
You can probably do something with runtime.Stack , but that would be super-specific to a specific codebase, since you probably have some βgoodβ mountains and some outcasts.
Update: February 4, 2016
I was curious, so I made a very simple (and badly named) library to make the goroutines different over time. The simplest leak detector. https://github.com/dbudworth/greak
source share