Debian Codegraph @

go/analysis/passes/modernize/testdata/src/waitgroupgo/waitgroup_dot.go.golden

raw
1 package waitgroup
2
3 import (
4 "fmt"
5 . "sync"
6 )
7
8 // supported case for pattern 1.
9 func _() {
10 var wg WaitGroup
11 wg.Go(func() { // want "Goroutine creation can be simplified using WaitGroup.Go"
12 fmt.Println()
13 })
14
15 wg.Go(func() { // want "Goroutine creation can be simplified using WaitGroup.Go"
16 fmt.Println()
17 })
18 }