stop Package stop provides helpers to make it easier to gracefully stop groups of goroutines (and anything else that implements the Stopper interface). go get github.com/upsight/stop See the documentation for an example.