github.com/amarpal/go-tools@v0.0.0-20240422043104-40142f59f616/simple/s1005/testdata/src/example.com/CheckUnnecessaryBlank/receive-blank.go.golden (about) 1 package pkg 2 3 func fn2() { 4 var ch chan int 5 <-ch 6 <-ch //@ diag(`unnecessary assignment to the blank identifier`) 7 select { 8 case <-ch: 9 case <-ch: //@ diag(`unnecessary assignment to the blank identifier`) 10 } 11 x := <-ch 12 y, _ := <-ch, <-ch 13 _, z := <-ch, <-ch 14 _, _, _ = x, y, z 15 }