os.go 695 B

12345678910111213141516171819202122232425262728293031323334353637
  1. package constant
  2. import (
  3. "github.com/sagernet/sing-box/constant/goos"
  4. )
  5. const IsAndroid = goos.IsAndroid == 1
  6. const IsDarwin = goos.IsDarwin == 1 || goos.IsIos == 1
  7. const IsDragonfly = goos.IsDragonfly == 1
  8. const IsFreebsd = goos.IsFreebsd == 1
  9. const IsHurd = goos.IsHurd == 1
  10. const IsIllumos = goos.IsIllumos == 1
  11. const IsIos = goos.IsIos == 1
  12. const IsJs = goos.IsJs == 1
  13. const IsLinux = goos.IsLinux == 1 || goos.IsAndroid == 1
  14. const IsNacl = goos.IsNacl == 1
  15. const IsNetbsd = goos.IsNetbsd == 1
  16. const IsOpenbsd = goos.IsOpenbsd == 1
  17. const IsPlan9 = goos.IsPlan9 == 1
  18. const IsSolaris = goos.IsSolaris == 1
  19. const IsWindows = goos.IsWindows == 1
  20. const IsZos = goos.IsZos == 1