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