blob: 6632160de06420d83f4d13291ded35985e68fd9b [file] [log] [blame]
package waitgroup
import (
"fmt"
sync1 "sync"
)
func _() {
var wg sync1.WaitGroup
wg.Add(1)
go func() { // want "Goroutine creation can be simplified using WaitGroup.Go"
defer wg.Done()
fmt.Println()
}()
wg.Add(1)
go func() { // want "Goroutine creation can be simplified using WaitGroup.Go"
fmt.Println()
wg.Done()
}()
}