github.com/golangci/go-tools@v0.0.0-20190318060251-af6baa5dc196/simple/testdata/src/LintBlankOK/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 }