blob: 2cc6e923b84391618b5e49a0bf698480000ffc8f [file] [log] [blame]
package waitgroup
import (
"fmt"
. "sync"
)
// supported case for pattern 1.
func _() {
var wg WaitGroup
wg.Go(func() { // want "Goroutine creation can be simplified using WaitGroup.Go"
fmt.Println()
})
wg.Go(func() { // want "Goroutine creation can be simplified using WaitGroup.Go"
fmt.Println()
})
}