github.com/neilgarb/delve@v1.9.2-nobreaks/_fixtures/testreturnaddress.go (about) 1 package main 2 3 import "sync" 4 5 func doSomething(wg *sync.WaitGroup) { 6 wg.Done() 7 } 8 9 func main() { 10 var wg sync.WaitGroup 11 wg.Add(2) 12 go doSomething(&wg) 13 go doSomething(&wg) 14 wg.Wait() 15 }