Debian Codegraph @

staticcheck/sa4032/testdata/go1.0/CheckGOOSComparison/tlinux.go

raw
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 }