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