github.com/golangci/go-tools@v0.0.0-20190318060251-af6baa5dc196/simple/testdata/src/receive-blank/receive-blank.go (about)

     1  package pkg
     2  
     3  func fn() {
     4  	var ch chan int
     5  	<-ch
     6  	_ = <-ch // MATCH /_ = <-ch/
     7  	select {
     8  	case <-ch:
     9  	case _ = <-ch: // MATCH /_ = <-ch/
    10  	}
    11  	x := <-ch
    12  	y, _ := <-ch, <-ch // MATCH /_ = <-ch/
    13  	_, z := <-ch, <-ch // MATCH /_ = <-ch/
    14  	_, _, _ = x, y, z
    15  }