github.com/amarpal/go-tools@v0.0.0-20240422043104-40142f59f616/staticcheck/sa4032/testdata/src/example.com/CheckGOOSComparison/complex.go (about) 1 //go:build linux || windows 2 3 package pkg 4 5 import "runtime" 6 7 func complex() { 8 if runtime.GOOS == "linux" { 9 } 10 if runtime.GOOS == "android" { 11 } 12 if runtime.GOOS == "windows" { 13 } 14 if runtime.GOOS == "darwin" { //@ diag(`runtime.GOOS will never equal "darwin"`) 15 } 16 }