github.com/serversong/goreporter@v0.0.0-20200325104552-3cfaf44fd178/linters/staticcheck/testdata/CheckUnsignedComparison.go (about) 1 package pkg 2 3 func fn(x uint32) { 4 if x >= 0 { // MATCH /unsigned values are always >= 0/ 5 println() 6 } 7 if x < 0 { // MATCH /unsigned values are never < 0/ 8 println() 9 } 10 }