gitee.com/wgliang/goreporter@v0.0.0-20180902115603-df1b20f7c5d0/linters/simplecode/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 }