github.com/sagernet/sing-box@v1.9.0-rc.20/constant/os.go (about) 1 package constant 2 3 import ( 4 "github.com/sagernet/sing-box/constant/goos" 5 ) 6 7 const IsAndroid = goos.IsAndroid == 1 8 9 const IsDarwin = goos.IsDarwin == 1 10 11 const IsDragonfly = goos.IsDragonfly == 1 12 13 const IsFreebsd = goos.IsFreebsd == 1 14 15 const IsHurd = goos.IsHurd == 1 16 17 const IsIllumos = goos.IsIllumos == 1 18 19 const IsIos = goos.IsIos == 1 20 21 const IsJs = goos.IsJs == 1 22 23 const IsLinux = goos.IsLinux == 1 || goos.IsAndroid == 1 24 25 const IsNacl = goos.IsNacl == 1 26 27 const IsNetbsd = goos.IsNetbsd == 1 28 29 const IsOpenbsd = goos.IsOpenbsd == 1 30 31 const IsPlan9 = goos.IsPlan9 == 1 32 33 const IsSolaris = goos.IsSolaris == 1 34 35 const IsWindows = goos.IsWindows == 1 36 37 const IsZos = goos.IsZos == 1