github.com/songshiyun/revive@v1.1.5-0.20220323112655-f8433a19b3c5/testdata/waitgroup-by-value.go (about)

     1  package fixtures
     2  
     3  import (
     4  	"sync"
     5  )
     6  
     7  func foo(a int, b float32, c char, d sync.WaitGroup) { // MATCH /sync.WaitGroup passed by value, the function will get a copy of the original one/
     8  
     9  }
    10  
    11  func bar(a, b sync.WaitGroup) { // MATCH /sync.WaitGroup passed by value, the function will get a copy of the original one/
    12  
    13  }
    14  
    15  func baz(zz sync.WaitGroup) { // MATCH /sync.WaitGroup passed by value, the function will get a copy of the original one/
    16  
    17  }
    18  
    19  func ok(zz *sync.WaitGroup) {
    20  
    21  }