github.com/amarpal/go-tools@v0.0.0-20240422043104-40142f59f616/staticcheck/sa4032/testdata/src/example.com/CheckGOOSComparison/f_linux.go (about)

     1  package pkg
     2  
     3  import "runtime"
     4  
     5  func fileLinux() {
     6  	if runtime.GOOS == "windows" { //@ diag(`runtime.GOOS will never equal "windows"`)
     7  	}
     8  	if runtime.GOOS == "android" {
     9  	}
    10  	if runtime.GOOS == "linux" {
    11  	}
    12  }