github.com/serversong/goreporter@v0.0.0-20200325104552-3cfaf44fd178/linters/simpler/testdata/LintBlankOK.go (about)

     1  package pkg
     2  
     3  func fn() {
     4  	var m map[int]int
     5  	var ch chan int
     6  	var fn func() (int, bool)
     7  
     8  	x, _ := m[0] // MATCH "should write x := m[0] instead of x, _ := m[0]"
     9  	x, _ = <-ch  // MATCH "should write x = <-ch instead of x, _ = <-ch"
    10  	x, _ = fn()
    11  	_ = x
    12  }