honnef.co/go/tools@v0.5.0-0.dev.0.20240520180541-dcae280a5e87/staticcheck/sa4032/testdata/src/example.com/CheckGOOSComparison/f_unix.go (about)

     1  package pkg
     2  
     3  import "runtime"
     4  
     5  func fileUnix() {
     6  	// "unix" is not a magic file name suffix, so all of these branches are fine
     7  	if runtime.GOOS == "windows" {
     8  	}
     9  	if runtime.GOOS == "android" {
    10  	}
    11  	if runtime.GOOS == "linux" {
    12  	}
    13  }