You can use a sync.WaitGroup
which you pass to each of your goroutine. This is the common way
to wait in the calling goroutine for its children.
However, in your case where you don't care for the results this should do as well:
select {}
From the spec regarding select
:
If there are no cases with non-nil channels, the statement blocks forever
This statement blocks forever while yielding control to the other goroutines.