1 package foo 2 3 import ( 4 "fmt" 5 "sync" 6 ) 7 8 func sayhi(n int, wg *sync.WaitGroup) { 9 fmt.Println("hi", n) 10 fmt.Println("hi", n) 11 wg.Done() 12 } 13
View as plain text