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