github.com/inazumav/sing-box@v0.0.0-20230926072359-ab51429a14f1/constant/os.go (about)

     1  package constant
     2  
     3  import (
     4  	"github.com/inazumav/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