github.com/go-asm/go@v1.21.1-0.20240213172139-40c5ead50c48/cmd/go/modindex/syslist.go (about)

     1  // Copyright 2011 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // This file is a lightly modified copy go/build/syslist_test.go.
     6  
     7  package modindex
     8  
     9  // knownOS is the list of past, present, and future known GOOS values.
    10  // Do not remove from this list, as it is used for filename matching.
    11  // If you add an entry to this list, look at unixOS, below.
    12  var knownOS = map[string]bool{
    13  	"aix":       true,
    14  	"android":   true,
    15  	"darwin":    true,
    16  	"dragonfly": true,
    17  	"freebsd":   true,
    18  	"hurd":      true,
    19  	"illumos":   true,
    20  	"ios":       true,
    21  	"js":        true,
    22  	"linux":     true,
    23  	"nacl":      true,
    24  	"netbsd":    true,
    25  	"openbsd":   true,
    26  	"plan9":     true,
    27  	"solaris":   true,
    28  	"wasip1":    true,
    29  	"windows":   true,
    30  	"zos":       true,
    31  }
    32  
    33  // unixOS is the set of GOOS values matched by the "unix" build tag.
    34  // This is not used for filename matching.
    35  // This list also appears in cmd/dist/build.go.
    36  var unixOS = map[string]bool{
    37  	"aix":       true,
    38  	"android":   true,
    39  	"darwin":    true,
    40  	"dragonfly": true,
    41  	"freebsd":   true,
    42  	"hurd":      true,
    43  	"illumos":   true,
    44  	"ios":       true,
    45  	"linux":     true,
    46  	"netbsd":    true,
    47  	"openbsd":   true,
    48  	"solaris":   true,
    49  }
    50  
    51  // knownArch is the list of past, present, and future known GOARCH values.
    52  // Do not remove from this list, as it is used for filename matching.
    53  var knownArch = map[string]bool{
    54  	"386":         true,
    55  	"amd64":       true,
    56  	"amd64p32":    true,
    57  	"arm":         true,
    58  	"armbe":       true,
    59  	"arm64":       true,
    60  	"arm64be":     true,
    61  	"loong64":     true,
    62  	"mips":        true,
    63  	"mipsle":      true,
    64  	"mips64":      true,
    65  	"mips64le":    true,
    66  	"mips64p32":   true,
    67  	"mips64p32le": true,
    68  	"ppc":         true,
    69  	"ppc64":       true,
    70  	"ppc64le":     true,
    71  	"riscv":       true,
    72  	"riscv64":     true,
    73  	"s390":        true,
    74  	"s390x":       true,
    75  	"sparc":       true,
    76  	"sparc64":     true,
    77  	"wasm":        true,
    78  }