[dev.typeparams] internal/goarch,internal/goos: rename Goos and Goarch constants

Lots of constants in these packages start with Goarch and Goos, which is
redundant. Instead, add the "Is" prefix to make the constant clearer,
and to differentiate from the arch family constants.

Change-Id: Id92c1d3e911296a72949f8c9d649f142e7dc9d17
Reviewed-on: https://go-review.googlesource.com/c/go/+/328343
Trust: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
This commit is contained in:
Michael Anthony Knyszek 2021-06-16 21:47:33 +00:00 committed by Michael Knyszek
parent 33d1b82d16
commit 81a6a4354b
43 changed files with 824 additions and 824 deletions

View file

@ -49,7 +49,7 @@ func main() {
if goarch == target { if goarch == target {
value = 1 value = 1
} }
fmt.Fprintf(&buf, "const Goarch%s = %d\n", strings.Title(goarch), value) fmt.Fprintf(&buf, "const Is%s = %d\n", strings.Title(goarch), value)
} }
err := os.WriteFile("zgoarch_"+target+".go", buf.Bytes(), 0666) err := os.WriteFile("zgoarch_"+target+".go", buf.Bytes(), 0666)
if err != nil { if err != nil {

View file

@ -6,7 +6,7 @@
package goarch package goarch
// The next line makes 'go generate' write the zgoarch*.go files with // The next line makes 'go generate' write the zgoarch*.go files with
// per-arch information, including constants named Goarch$GOARCH for every // per-arch information, including constants named $GOARCH for every
// GOARCH. The constant is 1 on the current system, 0 otherwise; multiplying // GOARCH. The constant is 1 on the current system, 0 otherwise; multiplying
// by them is useful for defining GOARCH-specific constants. // by them is useful for defining GOARCH-specific constants.
//go:generate go run gengoarch.go //go:generate go run gengoarch.go
@ -34,7 +34,7 @@ const PtrSize = 4 << (^uintptr(0) >> 63)
const ArchFamily ArchFamilyType = _ArchFamily const ArchFamily ArchFamilyType = _ArchFamily
// BigEndian reports whether the architecture is big-endian. // BigEndian reports whether the architecture is big-endian.
const BigEndian = GoarchArmbe|GoarchArm64be|GoarchMips|GoarchMips64|GoarchPpc|GoarchPpc64|GoarchS390|GoarchS390x|GoarchSparc|GoarchSparc64 == 1 const BigEndian = IsArmbe|IsArm64be|IsMips|IsMips64|IsPpc|IsPpc64|IsS390|IsS390x|IsSparc|IsSparc64 == 1
// DefaultPhysPageSize is the default physical page size. // DefaultPhysPageSize is the default physical page size.
const DefaultPhysPageSize = _DefaultPhysPageSize const DefaultPhysPageSize = _DefaultPhysPageSize

View file

@ -7,26 +7,26 @@ package goarch
const GOARCH = `386` const GOARCH = `386`
const Goarch386 = 1 const Is386 = 1
const GoarchAmd64 = 0 const IsAmd64 = 0
const GoarchAmd64p32 = 0 const IsAmd64p32 = 0
const GoarchArm = 0 const IsArm = 0
const GoarchArmbe = 0 const IsArmbe = 0
const GoarchArm64 = 0 const IsArm64 = 0
const GoarchArm64be = 0 const IsArm64be = 0
const GoarchPpc64 = 0 const IsPpc64 = 0
const GoarchPpc64le = 0 const IsPpc64le = 0
const GoarchMips = 0 const IsMips = 0
const GoarchMipsle = 0 const IsMipsle = 0
const GoarchMips64 = 0 const IsMips64 = 0
const GoarchMips64le = 0 const IsMips64le = 0
const GoarchMips64p32 = 0 const IsMips64p32 = 0
const GoarchMips64p32le = 0 const IsMips64p32le = 0
const GoarchPpc = 0 const IsPpc = 0
const GoarchRiscv = 0 const IsRiscv = 0
const GoarchRiscv64 = 0 const IsRiscv64 = 0
const GoarchS390 = 0 const IsS390 = 0
const GoarchS390x = 0 const IsS390x = 0
const GoarchSparc = 0 const IsSparc = 0
const GoarchSparc64 = 0 const IsSparc64 = 0
const GoarchWasm = 0 const IsWasm = 0

View file

@ -7,26 +7,26 @@ package goarch
const GOARCH = `amd64` const GOARCH = `amd64`
const Goarch386 = 0 const Is386 = 0
const GoarchAmd64 = 1 const IsAmd64 = 1
const GoarchAmd64p32 = 0 const IsAmd64p32 = 0
const GoarchArm = 0 const IsArm = 0
const GoarchArmbe = 0 const IsArmbe = 0
const GoarchArm64 = 0 const IsArm64 = 0
const GoarchArm64be = 0 const IsArm64be = 0
const GoarchPpc64 = 0 const IsPpc64 = 0
const GoarchPpc64le = 0 const IsPpc64le = 0
const GoarchMips = 0 const IsMips = 0
const GoarchMipsle = 0 const IsMipsle = 0
const GoarchMips64 = 0 const IsMips64 = 0
const GoarchMips64le = 0 const IsMips64le = 0
const GoarchMips64p32 = 0 const IsMips64p32 = 0
const GoarchMips64p32le = 0 const IsMips64p32le = 0
const GoarchPpc = 0 const IsPpc = 0
const GoarchRiscv = 0 const IsRiscv = 0
const GoarchRiscv64 = 0 const IsRiscv64 = 0
const GoarchS390 = 0 const IsS390 = 0
const GoarchS390x = 0 const IsS390x = 0
const GoarchSparc = 0 const IsSparc = 0
const GoarchSparc64 = 0 const IsSparc64 = 0
const GoarchWasm = 0 const IsWasm = 0

View file

@ -7,26 +7,26 @@ package goarch
const GOARCH = `arm` const GOARCH = `arm`
const Goarch386 = 0 const Is386 = 0
const GoarchAmd64 = 0 const IsAmd64 = 0
const GoarchAmd64p32 = 0 const IsAmd64p32 = 0
const GoarchArm = 1 const IsArm = 1
const GoarchArmbe = 0 const IsArmbe = 0
const GoarchArm64 = 0 const IsArm64 = 0
const GoarchArm64be = 0 const IsArm64be = 0
const GoarchPpc64 = 0 const IsPpc64 = 0
const GoarchPpc64le = 0 const IsPpc64le = 0
const GoarchMips = 0 const IsMips = 0
const GoarchMipsle = 0 const IsMipsle = 0
const GoarchMips64 = 0 const IsMips64 = 0
const GoarchMips64le = 0 const IsMips64le = 0
const GoarchMips64p32 = 0 const IsMips64p32 = 0
const GoarchMips64p32le = 0 const IsMips64p32le = 0
const GoarchPpc = 0 const IsPpc = 0
const GoarchRiscv = 0 const IsRiscv = 0
const GoarchRiscv64 = 0 const IsRiscv64 = 0
const GoarchS390 = 0 const IsS390 = 0
const GoarchS390x = 0 const IsS390x = 0
const GoarchSparc = 0 const IsSparc = 0
const GoarchSparc64 = 0 const IsSparc64 = 0
const GoarchWasm = 0 const IsWasm = 0

View file

@ -7,26 +7,26 @@ package goarch
const GOARCH = `arm64` const GOARCH = `arm64`
const Goarch386 = 0 const Is386 = 0
const GoarchAmd64 = 0 const IsAmd64 = 0
const GoarchAmd64p32 = 0 const IsAmd64p32 = 0
const GoarchArm = 0 const IsArm = 0
const GoarchArmbe = 0 const IsArmbe = 0
const GoarchArm64 = 1 const IsArm64 = 1
const GoarchArm64be = 0 const IsArm64be = 0
const GoarchPpc64 = 0 const IsPpc64 = 0
const GoarchPpc64le = 0 const IsPpc64le = 0
const GoarchMips = 0 const IsMips = 0
const GoarchMipsle = 0 const IsMipsle = 0
const GoarchMips64 = 0 const IsMips64 = 0
const GoarchMips64le = 0 const IsMips64le = 0
const GoarchMips64p32 = 0 const IsMips64p32 = 0
const GoarchMips64p32le = 0 const IsMips64p32le = 0
const GoarchPpc = 0 const IsPpc = 0
const GoarchRiscv = 0 const IsRiscv = 0
const GoarchRiscv64 = 0 const IsRiscv64 = 0
const GoarchS390 = 0 const IsS390 = 0
const GoarchS390x = 0 const IsS390x = 0
const GoarchSparc = 0 const IsSparc = 0
const GoarchSparc64 = 0 const IsSparc64 = 0
const GoarchWasm = 0 const IsWasm = 0

View file

@ -7,26 +7,26 @@ package goarch
const GOARCH = `arm64be` const GOARCH = `arm64be`
const Goarch386 = 0 const Is386 = 0
const GoarchAmd64 = 0 const IsAmd64 = 0
const GoarchAmd64p32 = 0 const IsAmd64p32 = 0
const GoarchArm = 0 const IsArm = 0
const GoarchArmbe = 0 const IsArmbe = 0
const GoarchArm64 = 0 const IsArm64 = 0
const GoarchArm64be = 1 const IsArm64be = 1
const GoarchPpc64 = 0 const IsPpc64 = 0
const GoarchPpc64le = 0 const IsPpc64le = 0
const GoarchMips = 0 const IsMips = 0
const GoarchMipsle = 0 const IsMipsle = 0
const GoarchMips64 = 0 const IsMips64 = 0
const GoarchMips64le = 0 const IsMips64le = 0
const GoarchMips64p32 = 0 const IsMips64p32 = 0
const GoarchMips64p32le = 0 const IsMips64p32le = 0
const GoarchPpc = 0 const IsPpc = 0
const GoarchRiscv = 0 const IsRiscv = 0
const GoarchRiscv64 = 0 const IsRiscv64 = 0
const GoarchS390 = 0 const IsS390 = 0
const GoarchS390x = 0 const IsS390x = 0
const GoarchSparc = 0 const IsSparc = 0
const GoarchSparc64 = 0 const IsSparc64 = 0
const GoarchWasm = 0 const IsWasm = 0

View file

@ -7,26 +7,26 @@ package goarch
const GOARCH = `armbe` const GOARCH = `armbe`
const Goarch386 = 0 const Is386 = 0
const GoarchAmd64 = 0 const IsAmd64 = 0
const GoarchAmd64p32 = 0 const IsAmd64p32 = 0
const GoarchArm = 0 const IsArm = 0
const GoarchArmbe = 1 const IsArmbe = 1
const GoarchArm64 = 0 const IsArm64 = 0
const GoarchArm64be = 0 const IsArm64be = 0
const GoarchPpc64 = 0 const IsPpc64 = 0
const GoarchPpc64le = 0 const IsPpc64le = 0
const GoarchMips = 0 const IsMips = 0
const GoarchMipsle = 0 const IsMipsle = 0
const GoarchMips64 = 0 const IsMips64 = 0
const GoarchMips64le = 0 const IsMips64le = 0
const GoarchMips64p32 = 0 const IsMips64p32 = 0
const GoarchMips64p32le = 0 const IsMips64p32le = 0
const GoarchPpc = 0 const IsPpc = 0
const GoarchRiscv = 0 const IsRiscv = 0
const GoarchRiscv64 = 0 const IsRiscv64 = 0
const GoarchS390 = 0 const IsS390 = 0
const GoarchS390x = 0 const IsS390x = 0
const GoarchSparc = 0 const IsSparc = 0
const GoarchSparc64 = 0 const IsSparc64 = 0
const GoarchWasm = 0 const IsWasm = 0

View file

@ -7,26 +7,26 @@ package goarch
const GOARCH = `mips` const GOARCH = `mips`
const Goarch386 = 0 const Is386 = 0
const GoarchAmd64 = 0 const IsAmd64 = 0
const GoarchAmd64p32 = 0 const IsAmd64p32 = 0
const GoarchArm = 0 const IsArm = 0
const GoarchArmbe = 0 const IsArmbe = 0
const GoarchArm64 = 0 const IsArm64 = 0
const GoarchArm64be = 0 const IsArm64be = 0
const GoarchPpc64 = 0 const IsPpc64 = 0
const GoarchPpc64le = 0 const IsPpc64le = 0
const GoarchMips = 1 const IsMips = 1
const GoarchMipsle = 0 const IsMipsle = 0
const GoarchMips64 = 0 const IsMips64 = 0
const GoarchMips64le = 0 const IsMips64le = 0
const GoarchMips64p32 = 0 const IsMips64p32 = 0
const GoarchMips64p32le = 0 const IsMips64p32le = 0
const GoarchPpc = 0 const IsPpc = 0
const GoarchRiscv = 0 const IsRiscv = 0
const GoarchRiscv64 = 0 const IsRiscv64 = 0
const GoarchS390 = 0 const IsS390 = 0
const GoarchS390x = 0 const IsS390x = 0
const GoarchSparc = 0 const IsSparc = 0
const GoarchSparc64 = 0 const IsSparc64 = 0
const GoarchWasm = 0 const IsWasm = 0

View file

@ -7,26 +7,26 @@ package goarch
const GOARCH = `mips64` const GOARCH = `mips64`
const Goarch386 = 0 const Is386 = 0
const GoarchAmd64 = 0 const IsAmd64 = 0
const GoarchAmd64p32 = 0 const IsAmd64p32 = 0
const GoarchArm = 0 const IsArm = 0
const GoarchArmbe = 0 const IsArmbe = 0
const GoarchArm64 = 0 const IsArm64 = 0
const GoarchArm64be = 0 const IsArm64be = 0
const GoarchPpc64 = 0 const IsPpc64 = 0
const GoarchPpc64le = 0 const IsPpc64le = 0
const GoarchMips = 0 const IsMips = 0
const GoarchMipsle = 0 const IsMipsle = 0
const GoarchMips64 = 1 const IsMips64 = 1
const GoarchMips64le = 0 const IsMips64le = 0
const GoarchMips64p32 = 0 const IsMips64p32 = 0
const GoarchMips64p32le = 0 const IsMips64p32le = 0
const GoarchPpc = 0 const IsPpc = 0
const GoarchRiscv = 0 const IsRiscv = 0
const GoarchRiscv64 = 0 const IsRiscv64 = 0
const GoarchS390 = 0 const IsS390 = 0
const GoarchS390x = 0 const IsS390x = 0
const GoarchSparc = 0 const IsSparc = 0
const GoarchSparc64 = 0 const IsSparc64 = 0
const GoarchWasm = 0 const IsWasm = 0

View file

@ -7,26 +7,26 @@ package goarch
const GOARCH = `mips64le` const GOARCH = `mips64le`
const Goarch386 = 0 const Is386 = 0
const GoarchAmd64 = 0 const IsAmd64 = 0
const GoarchAmd64p32 = 0 const IsAmd64p32 = 0
const GoarchArm = 0 const IsArm = 0
const GoarchArmbe = 0 const IsArmbe = 0
const GoarchArm64 = 0 const IsArm64 = 0
const GoarchArm64be = 0 const IsArm64be = 0
const GoarchPpc64 = 0 const IsPpc64 = 0
const GoarchPpc64le = 0 const IsPpc64le = 0
const GoarchMips = 0 const IsMips = 0
const GoarchMipsle = 0 const IsMipsle = 0
const GoarchMips64 = 0 const IsMips64 = 0
const GoarchMips64le = 1 const IsMips64le = 1
const GoarchMips64p32 = 0 const IsMips64p32 = 0
const GoarchMips64p32le = 0 const IsMips64p32le = 0
const GoarchPpc = 0 const IsPpc = 0
const GoarchRiscv = 0 const IsRiscv = 0
const GoarchRiscv64 = 0 const IsRiscv64 = 0
const GoarchS390 = 0 const IsS390 = 0
const GoarchS390x = 0 const IsS390x = 0
const GoarchSparc = 0 const IsSparc = 0
const GoarchSparc64 = 0 const IsSparc64 = 0
const GoarchWasm = 0 const IsWasm = 0

View file

@ -7,26 +7,26 @@ package goarch
const GOARCH = `mips64p32` const GOARCH = `mips64p32`
const Goarch386 = 0 const Is386 = 0
const GoarchAmd64 = 0 const IsAmd64 = 0
const GoarchAmd64p32 = 0 const IsAmd64p32 = 0
const GoarchArm = 0 const IsArm = 0
const GoarchArmbe = 0 const IsArmbe = 0
const GoarchArm64 = 0 const IsArm64 = 0
const GoarchArm64be = 0 const IsArm64be = 0
const GoarchPpc64 = 0 const IsPpc64 = 0
const GoarchPpc64le = 0 const IsPpc64le = 0
const GoarchMips = 0 const IsMips = 0
const GoarchMipsle = 0 const IsMipsle = 0
const GoarchMips64 = 0 const IsMips64 = 0
const GoarchMips64le = 0 const IsMips64le = 0
const GoarchMips64p32 = 1 const IsMips64p32 = 1
const GoarchMips64p32le = 0 const IsMips64p32le = 0
const GoarchPpc = 0 const IsPpc = 0
const GoarchRiscv = 0 const IsRiscv = 0
const GoarchRiscv64 = 0 const IsRiscv64 = 0
const GoarchS390 = 0 const IsS390 = 0
const GoarchS390x = 0 const IsS390x = 0
const GoarchSparc = 0 const IsSparc = 0
const GoarchSparc64 = 0 const IsSparc64 = 0
const GoarchWasm = 0 const IsWasm = 0

View file

@ -7,26 +7,26 @@ package goarch
const GOARCH = `mips64p32le` const GOARCH = `mips64p32le`
const Goarch386 = 0 const Is386 = 0
const GoarchAmd64 = 0 const IsAmd64 = 0
const GoarchAmd64p32 = 0 const IsAmd64p32 = 0
const GoarchArm = 0 const IsArm = 0
const GoarchArmbe = 0 const IsArmbe = 0
const GoarchArm64 = 0 const IsArm64 = 0
const GoarchArm64be = 0 const IsArm64be = 0
const GoarchPpc64 = 0 const IsPpc64 = 0
const GoarchPpc64le = 0 const IsPpc64le = 0
const GoarchMips = 0 const IsMips = 0
const GoarchMipsle = 0 const IsMipsle = 0
const GoarchMips64 = 0 const IsMips64 = 0
const GoarchMips64le = 0 const IsMips64le = 0
const GoarchMips64p32 = 0 const IsMips64p32 = 0
const GoarchMips64p32le = 1 const IsMips64p32le = 1
const GoarchPpc = 0 const IsPpc = 0
const GoarchRiscv = 0 const IsRiscv = 0
const GoarchRiscv64 = 0 const IsRiscv64 = 0
const GoarchS390 = 0 const IsS390 = 0
const GoarchS390x = 0 const IsS390x = 0
const GoarchSparc = 0 const IsSparc = 0
const GoarchSparc64 = 0 const IsSparc64 = 0
const GoarchWasm = 0 const IsWasm = 0

View file

@ -7,26 +7,26 @@ package goarch
const GOARCH = `mipsle` const GOARCH = `mipsle`
const Goarch386 = 0 const Is386 = 0
const GoarchAmd64 = 0 const IsAmd64 = 0
const GoarchAmd64p32 = 0 const IsAmd64p32 = 0
const GoarchArm = 0 const IsArm = 0
const GoarchArmbe = 0 const IsArmbe = 0
const GoarchArm64 = 0 const IsArm64 = 0
const GoarchArm64be = 0 const IsArm64be = 0
const GoarchPpc64 = 0 const IsPpc64 = 0
const GoarchPpc64le = 0 const IsPpc64le = 0
const GoarchMips = 0 const IsMips = 0
const GoarchMipsle = 1 const IsMipsle = 1
const GoarchMips64 = 0 const IsMips64 = 0
const GoarchMips64le = 0 const IsMips64le = 0
const GoarchMips64p32 = 0 const IsMips64p32 = 0
const GoarchMips64p32le = 0 const IsMips64p32le = 0
const GoarchPpc = 0 const IsPpc = 0
const GoarchRiscv = 0 const IsRiscv = 0
const GoarchRiscv64 = 0 const IsRiscv64 = 0
const GoarchS390 = 0 const IsS390 = 0
const GoarchS390x = 0 const IsS390x = 0
const GoarchSparc = 0 const IsSparc = 0
const GoarchSparc64 = 0 const IsSparc64 = 0
const GoarchWasm = 0 const IsWasm = 0

View file

@ -7,26 +7,26 @@ package goarch
const GOARCH = `ppc` const GOARCH = `ppc`
const Goarch386 = 0 const Is386 = 0
const GoarchAmd64 = 0 const IsAmd64 = 0
const GoarchAmd64p32 = 0 const IsAmd64p32 = 0
const GoarchArm = 0 const IsArm = 0
const GoarchArmbe = 0 const IsArmbe = 0
const GoarchArm64 = 0 const IsArm64 = 0
const GoarchArm64be = 0 const IsArm64be = 0
const GoarchPpc64 = 0 const IsPpc64 = 0
const GoarchPpc64le = 0 const IsPpc64le = 0
const GoarchMips = 0 const IsMips = 0
const GoarchMipsle = 0 const IsMipsle = 0
const GoarchMips64 = 0 const IsMips64 = 0
const GoarchMips64le = 0 const IsMips64le = 0
const GoarchMips64p32 = 0 const IsMips64p32 = 0
const GoarchMips64p32le = 0 const IsMips64p32le = 0
const GoarchPpc = 1 const IsPpc = 1
const GoarchRiscv = 0 const IsRiscv = 0
const GoarchRiscv64 = 0 const IsRiscv64 = 0
const GoarchS390 = 0 const IsS390 = 0
const GoarchS390x = 0 const IsS390x = 0
const GoarchSparc = 0 const IsSparc = 0
const GoarchSparc64 = 0 const IsSparc64 = 0
const GoarchWasm = 0 const IsWasm = 0

View file

@ -7,26 +7,26 @@ package goarch
const GOARCH = `ppc64` const GOARCH = `ppc64`
const Goarch386 = 0 const Is386 = 0
const GoarchAmd64 = 0 const IsAmd64 = 0
const GoarchAmd64p32 = 0 const IsAmd64p32 = 0
const GoarchArm = 0 const IsArm = 0
const GoarchArmbe = 0 const IsArmbe = 0
const GoarchArm64 = 0 const IsArm64 = 0
const GoarchArm64be = 0 const IsArm64be = 0
const GoarchPpc64 = 1 const IsPpc64 = 1
const GoarchPpc64le = 0 const IsPpc64le = 0
const GoarchMips = 0 const IsMips = 0
const GoarchMipsle = 0 const IsMipsle = 0
const GoarchMips64 = 0 const IsMips64 = 0
const GoarchMips64le = 0 const IsMips64le = 0
const GoarchMips64p32 = 0 const IsMips64p32 = 0
const GoarchMips64p32le = 0 const IsMips64p32le = 0
const GoarchPpc = 0 const IsPpc = 0
const GoarchRiscv = 0 const IsRiscv = 0
const GoarchRiscv64 = 0 const IsRiscv64 = 0
const GoarchS390 = 0 const IsS390 = 0
const GoarchS390x = 0 const IsS390x = 0
const GoarchSparc = 0 const IsSparc = 0
const GoarchSparc64 = 0 const IsSparc64 = 0
const GoarchWasm = 0 const IsWasm = 0

View file

@ -7,26 +7,26 @@ package goarch
const GOARCH = `ppc64le` const GOARCH = `ppc64le`
const Goarch386 = 0 const Is386 = 0
const GoarchAmd64 = 0 const IsAmd64 = 0
const GoarchAmd64p32 = 0 const IsAmd64p32 = 0
const GoarchArm = 0 const IsArm = 0
const GoarchArmbe = 0 const IsArmbe = 0
const GoarchArm64 = 0 const IsArm64 = 0
const GoarchArm64be = 0 const IsArm64be = 0
const GoarchPpc64 = 0 const IsPpc64 = 0
const GoarchPpc64le = 1 const IsPpc64le = 1
const GoarchMips = 0 const IsMips = 0
const GoarchMipsle = 0 const IsMipsle = 0
const GoarchMips64 = 0 const IsMips64 = 0
const GoarchMips64le = 0 const IsMips64le = 0
const GoarchMips64p32 = 0 const IsMips64p32 = 0
const GoarchMips64p32le = 0 const IsMips64p32le = 0
const GoarchPpc = 0 const IsPpc = 0
const GoarchRiscv = 0 const IsRiscv = 0
const GoarchRiscv64 = 0 const IsRiscv64 = 0
const GoarchS390 = 0 const IsS390 = 0
const GoarchS390x = 0 const IsS390x = 0
const GoarchSparc = 0 const IsSparc = 0
const GoarchSparc64 = 0 const IsSparc64 = 0
const GoarchWasm = 0 const IsWasm = 0

View file

@ -7,26 +7,26 @@ package goarch
const GOARCH = `riscv` const GOARCH = `riscv`
const Goarch386 = 0 const Is386 = 0
const GoarchAmd64 = 0 const IsAmd64 = 0
const GoarchAmd64p32 = 0 const IsAmd64p32 = 0
const GoarchArm = 0 const IsArm = 0
const GoarchArmbe = 0 const IsArmbe = 0
const GoarchArm64 = 0 const IsArm64 = 0
const GoarchArm64be = 0 const IsArm64be = 0
const GoarchPpc64 = 0 const IsPpc64 = 0
const GoarchPpc64le = 0 const IsPpc64le = 0
const GoarchMips = 0 const IsMips = 0
const GoarchMipsle = 0 const IsMipsle = 0
const GoarchMips64 = 0 const IsMips64 = 0
const GoarchMips64le = 0 const IsMips64le = 0
const GoarchMips64p32 = 0 const IsMips64p32 = 0
const GoarchMips64p32le = 0 const IsMips64p32le = 0
const GoarchPpc = 0 const IsPpc = 0
const GoarchRiscv = 1 const IsRiscv = 1
const GoarchRiscv64 = 0 const IsRiscv64 = 0
const GoarchS390 = 0 const IsS390 = 0
const GoarchS390x = 0 const IsS390x = 0
const GoarchSparc = 0 const IsSparc = 0
const GoarchSparc64 = 0 const IsSparc64 = 0
const GoarchWasm = 0 const IsWasm = 0

View file

@ -7,26 +7,26 @@ package goarch
const GOARCH = `riscv64` const GOARCH = `riscv64`
const Goarch386 = 0 const Is386 = 0
const GoarchAmd64 = 0 const IsAmd64 = 0
const GoarchAmd64p32 = 0 const IsAmd64p32 = 0
const GoarchArm = 0 const IsArm = 0
const GoarchArmbe = 0 const IsArmbe = 0
const GoarchArm64 = 0 const IsArm64 = 0
const GoarchArm64be = 0 const IsArm64be = 0
const GoarchPpc64 = 0 const IsPpc64 = 0
const GoarchPpc64le = 0 const IsPpc64le = 0
const GoarchMips = 0 const IsMips = 0
const GoarchMipsle = 0 const IsMipsle = 0
const GoarchMips64 = 0 const IsMips64 = 0
const GoarchMips64le = 0 const IsMips64le = 0
const GoarchMips64p32 = 0 const IsMips64p32 = 0
const GoarchMips64p32le = 0 const IsMips64p32le = 0
const GoarchPpc = 0 const IsPpc = 0
const GoarchRiscv = 0 const IsRiscv = 0
const GoarchRiscv64 = 1 const IsRiscv64 = 1
const GoarchS390 = 0 const IsS390 = 0
const GoarchS390x = 0 const IsS390x = 0
const GoarchSparc = 0 const IsSparc = 0
const GoarchSparc64 = 0 const IsSparc64 = 0
const GoarchWasm = 0 const IsWasm = 0

View file

@ -7,26 +7,26 @@ package goarch
const GOARCH = `s390` const GOARCH = `s390`
const Goarch386 = 0 const Is386 = 0
const GoarchAmd64 = 0 const IsAmd64 = 0
const GoarchAmd64p32 = 0 const IsAmd64p32 = 0
const GoarchArm = 0 const IsArm = 0
const GoarchArmbe = 0 const IsArmbe = 0
const GoarchArm64 = 0 const IsArm64 = 0
const GoarchArm64be = 0 const IsArm64be = 0
const GoarchPpc64 = 0 const IsPpc64 = 0
const GoarchPpc64le = 0 const IsPpc64le = 0
const GoarchMips = 0 const IsMips = 0
const GoarchMipsle = 0 const IsMipsle = 0
const GoarchMips64 = 0 const IsMips64 = 0
const GoarchMips64le = 0 const IsMips64le = 0
const GoarchMips64p32 = 0 const IsMips64p32 = 0
const GoarchMips64p32le = 0 const IsMips64p32le = 0
const GoarchPpc = 0 const IsPpc = 0
const GoarchRiscv = 0 const IsRiscv = 0
const GoarchRiscv64 = 0 const IsRiscv64 = 0
const GoarchS390 = 1 const IsS390 = 1
const GoarchS390x = 0 const IsS390x = 0
const GoarchSparc = 0 const IsSparc = 0
const GoarchSparc64 = 0 const IsSparc64 = 0
const GoarchWasm = 0 const IsWasm = 0

View file

@ -7,26 +7,26 @@ package goarch
const GOARCH = `s390x` const GOARCH = `s390x`
const Goarch386 = 0 const Is386 = 0
const GoarchAmd64 = 0 const IsAmd64 = 0
const GoarchAmd64p32 = 0 const IsAmd64p32 = 0
const GoarchArm = 0 const IsArm = 0
const GoarchArmbe = 0 const IsArmbe = 0
const GoarchArm64 = 0 const IsArm64 = 0
const GoarchArm64be = 0 const IsArm64be = 0
const GoarchPpc64 = 0 const IsPpc64 = 0
const GoarchPpc64le = 0 const IsPpc64le = 0
const GoarchMips = 0 const IsMips = 0
const GoarchMipsle = 0 const IsMipsle = 0
const GoarchMips64 = 0 const IsMips64 = 0
const GoarchMips64le = 0 const IsMips64le = 0
const GoarchMips64p32 = 0 const IsMips64p32 = 0
const GoarchMips64p32le = 0 const IsMips64p32le = 0
const GoarchPpc = 0 const IsPpc = 0
const GoarchRiscv = 0 const IsRiscv = 0
const GoarchRiscv64 = 0 const IsRiscv64 = 0
const GoarchS390 = 0 const IsS390 = 0
const GoarchS390x = 1 const IsS390x = 1
const GoarchSparc = 0 const IsSparc = 0
const GoarchSparc64 = 0 const IsSparc64 = 0
const GoarchWasm = 0 const IsWasm = 0

View file

@ -7,26 +7,26 @@ package goarch
const GOARCH = `sparc` const GOARCH = `sparc`
const Goarch386 = 0 const Is386 = 0
const GoarchAmd64 = 0 const IsAmd64 = 0
const GoarchAmd64p32 = 0 const IsAmd64p32 = 0
const GoarchArm = 0 const IsArm = 0
const GoarchArmbe = 0 const IsArmbe = 0
const GoarchArm64 = 0 const IsArm64 = 0
const GoarchArm64be = 0 const IsArm64be = 0
const GoarchPpc64 = 0 const IsPpc64 = 0
const GoarchPpc64le = 0 const IsPpc64le = 0
const GoarchMips = 0 const IsMips = 0
const GoarchMipsle = 0 const IsMipsle = 0
const GoarchMips64 = 0 const IsMips64 = 0
const GoarchMips64le = 0 const IsMips64le = 0
const GoarchMips64p32 = 0 const IsMips64p32 = 0
const GoarchMips64p32le = 0 const IsMips64p32le = 0
const GoarchPpc = 0 const IsPpc = 0
const GoarchRiscv = 0 const IsRiscv = 0
const GoarchRiscv64 = 0 const IsRiscv64 = 0
const GoarchS390 = 0 const IsS390 = 0
const GoarchS390x = 0 const IsS390x = 0
const GoarchSparc = 1 const IsSparc = 1
const GoarchSparc64 = 0 const IsSparc64 = 0
const GoarchWasm = 0 const IsWasm = 0

View file

@ -7,26 +7,26 @@ package goarch
const GOARCH = `sparc64` const GOARCH = `sparc64`
const Goarch386 = 0 const Is386 = 0
const GoarchAmd64 = 0 const IsAmd64 = 0
const GoarchAmd64p32 = 0 const IsAmd64p32 = 0
const GoarchArm = 0 const IsArm = 0
const GoarchArmbe = 0 const IsArmbe = 0
const GoarchArm64 = 0 const IsArm64 = 0
const GoarchArm64be = 0 const IsArm64be = 0
const GoarchPpc64 = 0 const IsPpc64 = 0
const GoarchPpc64le = 0 const IsPpc64le = 0
const GoarchMips = 0 const IsMips = 0
const GoarchMipsle = 0 const IsMipsle = 0
const GoarchMips64 = 0 const IsMips64 = 0
const GoarchMips64le = 0 const IsMips64le = 0
const GoarchMips64p32 = 0 const IsMips64p32 = 0
const GoarchMips64p32le = 0 const IsMips64p32le = 0
const GoarchPpc = 0 const IsPpc = 0
const GoarchRiscv = 0 const IsRiscv = 0
const GoarchRiscv64 = 0 const IsRiscv64 = 0
const GoarchS390 = 0 const IsS390 = 0
const GoarchS390x = 0 const IsS390x = 0
const GoarchSparc = 0 const IsSparc = 0
const GoarchSparc64 = 1 const IsSparc64 = 1
const GoarchWasm = 0 const IsWasm = 0

View file

@ -7,26 +7,26 @@ package goarch
const GOARCH = `wasm` const GOARCH = `wasm`
const Goarch386 = 0 const Is386 = 0
const GoarchAmd64 = 0 const IsAmd64 = 0
const GoarchAmd64p32 = 0 const IsAmd64p32 = 0
const GoarchArm = 0 const IsArm = 0
const GoarchArmbe = 0 const IsArmbe = 0
const GoarchArm64 = 0 const IsArm64 = 0
const GoarchArm64be = 0 const IsArm64be = 0
const GoarchPpc64 = 0 const IsPpc64 = 0
const GoarchPpc64le = 0 const IsPpc64le = 0
const GoarchMips = 0 const IsMips = 0
const GoarchMipsle = 0 const IsMipsle = 0
const GoarchMips64 = 0 const IsMips64 = 0
const GoarchMips64le = 0 const IsMips64le = 0
const GoarchMips64p32 = 0 const IsMips64p32 = 0
const GoarchMips64p32le = 0 const IsMips64p32le = 0
const GoarchPpc = 0 const IsPpc = 0
const GoarchRiscv = 0 const IsRiscv = 0
const GoarchRiscv64 = 0 const IsRiscv64 = 0
const GoarchS390 = 0 const IsS390 = 0
const GoarchS390x = 0 const IsS390x = 0
const GoarchSparc = 0 const IsSparc = 0
const GoarchSparc64 = 0 const IsSparc64 = 0
const GoarchWasm = 1 const IsWasm = 1

View file

@ -60,7 +60,7 @@ func main() {
if goos == target { if goos == target {
value = 1 value = 1
} }
fmt.Fprintf(&buf, "const Goos%s = %d\n", strings.Title(goos), value) fmt.Fprintf(&buf, "const Is%s = %d\n", strings.Title(goos), value)
} }
err := os.WriteFile("zgoos_"+target+".go", buf.Bytes(), 0666) err := os.WriteFile("zgoos_"+target+".go", buf.Bytes(), 0666)
if err != nil { if err != nil {

View file

@ -6,7 +6,7 @@
package goos package goos
// The next line makes 'go generate' write the zgoos*.go files with // The next line makes 'go generate' write the zgoos*.go files with
// per-OS information, including constants named Goos$GOOS for every // per-OS information, including constants named Is$GOOS for every
// known GOOS. The constant is 1 on the current system, 0 otherwise; // known GOOS. The constant is 1 on the current system, 0 otherwise;
// multiplying by them is useful for defining GOOS-specific constants. // multiplying by them is useful for defining GOOS-specific constants.
//go:generate go run gengoos.go //go:generate go run gengoos.go

View file

@ -7,20 +7,20 @@ package goos
const GOOS = `aix` const GOOS = `aix`
const GoosAix = 1 const IsAix = 1
const GoosAndroid = 0 const IsAndroid = 0
const GoosDarwin = 0 const IsDarwin = 0
const GoosDragonfly = 0 const IsDragonfly = 0
const GoosFreebsd = 0 const IsFreebsd = 0
const GoosHurd = 0 const IsHurd = 0
const GoosIllumos = 0 const IsIllumos = 0
const GoosIos = 0 const IsIos = 0
const GoosJs = 0 const IsJs = 0
const GoosLinux = 0 const IsLinux = 0
const GoosNacl = 0 const IsNacl = 0
const GoosNetbsd = 0 const IsNetbsd = 0
const GoosOpenbsd = 0 const IsOpenbsd = 0
const GoosPlan9 = 0 const IsPlan9 = 0
const GoosSolaris = 0 const IsSolaris = 0
const GoosWindows = 0 const IsWindows = 0
const GoosZos = 0 const IsZos = 0

View file

@ -7,20 +7,20 @@ package goos
const GOOS = `android` const GOOS = `android`
const GoosAix = 0 const IsAix = 0
const GoosAndroid = 1 const IsAndroid = 1
const GoosDarwin = 0 const IsDarwin = 0
const GoosDragonfly = 0 const IsDragonfly = 0
const GoosFreebsd = 0 const IsFreebsd = 0
const GoosHurd = 0 const IsHurd = 0
const GoosIllumos = 0 const IsIllumos = 0
const GoosIos = 0 const IsIos = 0
const GoosJs = 0 const IsJs = 0
const GoosLinux = 0 const IsLinux = 0
const GoosNacl = 0 const IsNacl = 0
const GoosNetbsd = 0 const IsNetbsd = 0
const GoosOpenbsd = 0 const IsOpenbsd = 0
const GoosPlan9 = 0 const IsPlan9 = 0
const GoosSolaris = 0 const IsSolaris = 0
const GoosWindows = 0 const IsWindows = 0
const GoosZos = 0 const IsZos = 0

View file

@ -7,20 +7,20 @@ package goos
const GOOS = `darwin` const GOOS = `darwin`
const GoosAix = 0 const IsAix = 0
const GoosAndroid = 0 const IsAndroid = 0
const GoosDarwin = 1 const IsDarwin = 1
const GoosDragonfly = 0 const IsDragonfly = 0
const GoosFreebsd = 0 const IsFreebsd = 0
const GoosHurd = 0 const IsHurd = 0
const GoosIllumos = 0 const IsIllumos = 0
const GoosIos = 0 const IsIos = 0
const GoosJs = 0 const IsJs = 0
const GoosLinux = 0 const IsLinux = 0
const GoosNacl = 0 const IsNacl = 0
const GoosNetbsd = 0 const IsNetbsd = 0
const GoosOpenbsd = 0 const IsOpenbsd = 0
const GoosPlan9 = 0 const IsPlan9 = 0
const GoosSolaris = 0 const IsSolaris = 0
const GoosWindows = 0 const IsWindows = 0
const GoosZos = 0 const IsZos = 0

View file

@ -7,20 +7,20 @@ package goos
const GOOS = `dragonfly` const GOOS = `dragonfly`
const GoosAix = 0 const IsAix = 0
const GoosAndroid = 0 const IsAndroid = 0
const GoosDarwin = 0 const IsDarwin = 0
const GoosDragonfly = 1 const IsDragonfly = 1
const GoosFreebsd = 0 const IsFreebsd = 0
const GoosHurd = 0 const IsHurd = 0
const GoosIllumos = 0 const IsIllumos = 0
const GoosIos = 0 const IsIos = 0
const GoosJs = 0 const IsJs = 0
const GoosLinux = 0 const IsLinux = 0
const GoosNacl = 0 const IsNacl = 0
const GoosNetbsd = 0 const IsNetbsd = 0
const GoosOpenbsd = 0 const IsOpenbsd = 0
const GoosPlan9 = 0 const IsPlan9 = 0
const GoosSolaris = 0 const IsSolaris = 0
const GoosWindows = 0 const IsWindows = 0
const GoosZos = 0 const IsZos = 0

View file

@ -7,20 +7,20 @@ package goos
const GOOS = `freebsd` const GOOS = `freebsd`
const GoosAix = 0 const IsAix = 0
const GoosAndroid = 0 const IsAndroid = 0
const GoosDarwin = 0 const IsDarwin = 0
const GoosDragonfly = 0 const IsDragonfly = 0
const GoosFreebsd = 1 const IsFreebsd = 1
const GoosHurd = 0 const IsHurd = 0
const GoosIllumos = 0 const IsIllumos = 0
const GoosIos = 0 const IsIos = 0
const GoosJs = 0 const IsJs = 0
const GoosLinux = 0 const IsLinux = 0
const GoosNacl = 0 const IsNacl = 0
const GoosNetbsd = 0 const IsNetbsd = 0
const GoosOpenbsd = 0 const IsOpenbsd = 0
const GoosPlan9 = 0 const IsPlan9 = 0
const GoosSolaris = 0 const IsSolaris = 0
const GoosWindows = 0 const IsWindows = 0
const GoosZos = 0 const IsZos = 0

View file

@ -7,20 +7,20 @@ package goos
const GOOS = `hurd` const GOOS = `hurd`
const GoosAix = 0 const IsAix = 0
const GoosAndroid = 0 const IsAndroid = 0
const GoosDarwin = 0 const IsDarwin = 0
const GoosDragonfly = 0 const IsDragonfly = 0
const GoosFreebsd = 0 const IsFreebsd = 0
const GoosHurd = 1 const IsHurd = 1
const GoosIllumos = 0 const IsIllumos = 0
const GoosIos = 0 const IsIos = 0
const GoosJs = 0 const IsJs = 0
const GoosLinux = 0 const IsLinux = 0
const GoosNacl = 0 const IsNacl = 0
const GoosNetbsd = 0 const IsNetbsd = 0
const GoosOpenbsd = 0 const IsOpenbsd = 0
const GoosPlan9 = 0 const IsPlan9 = 0
const GoosSolaris = 0 const IsSolaris = 0
const GoosWindows = 0 const IsWindows = 0
const GoosZos = 0 const IsZos = 0

View file

@ -7,20 +7,20 @@ package goos
const GOOS = `illumos` const GOOS = `illumos`
const GoosAix = 0 const IsAix = 0
const GoosAndroid = 0 const IsAndroid = 0
const GoosDarwin = 0 const IsDarwin = 0
const GoosDragonfly = 0 const IsDragonfly = 0
const GoosFreebsd = 0 const IsFreebsd = 0
const GoosHurd = 0 const IsHurd = 0
const GoosIllumos = 1 const IsIllumos = 1
const GoosIos = 0 const IsIos = 0
const GoosJs = 0 const IsJs = 0
const GoosLinux = 0 const IsLinux = 0
const GoosNacl = 0 const IsNacl = 0
const GoosNetbsd = 0 const IsNetbsd = 0
const GoosOpenbsd = 0 const IsOpenbsd = 0
const GoosPlan9 = 0 const IsPlan9 = 0
const GoosSolaris = 0 const IsSolaris = 0
const GoosWindows = 0 const IsWindows = 0
const GoosZos = 0 const IsZos = 0

View file

@ -7,20 +7,20 @@ package goos
const GOOS = `ios` const GOOS = `ios`
const GoosAix = 0 const IsAix = 0
const GoosAndroid = 0 const IsAndroid = 0
const GoosDarwin = 0 const IsDarwin = 0
const GoosDragonfly = 0 const IsDragonfly = 0
const GoosFreebsd = 0 const IsFreebsd = 0
const GoosHurd = 0 const IsHurd = 0
const GoosIllumos = 0 const IsIllumos = 0
const GoosIos = 1 const IsIos = 1
const GoosJs = 0 const IsJs = 0
const GoosLinux = 0 const IsLinux = 0
const GoosNacl = 0 const IsNacl = 0
const GoosNetbsd = 0 const IsNetbsd = 0
const GoosOpenbsd = 0 const IsOpenbsd = 0
const GoosPlan9 = 0 const IsPlan9 = 0
const GoosSolaris = 0 const IsSolaris = 0
const GoosWindows = 0 const IsWindows = 0
const GoosZos = 0 const IsZos = 0

View file

@ -7,20 +7,20 @@ package goos
const GOOS = `js` const GOOS = `js`
const GoosAix = 0 const IsAix = 0
const GoosAndroid = 0 const IsAndroid = 0
const GoosDarwin = 0 const IsDarwin = 0
const GoosDragonfly = 0 const IsDragonfly = 0
const GoosFreebsd = 0 const IsFreebsd = 0
const GoosHurd = 0 const IsHurd = 0
const GoosIllumos = 0 const IsIllumos = 0
const GoosIos = 0 const IsIos = 0
const GoosJs = 1 const IsJs = 1
const GoosLinux = 0 const IsLinux = 0
const GoosNacl = 0 const IsNacl = 0
const GoosNetbsd = 0 const IsNetbsd = 0
const GoosOpenbsd = 0 const IsOpenbsd = 0
const GoosPlan9 = 0 const IsPlan9 = 0
const GoosSolaris = 0 const IsSolaris = 0
const GoosWindows = 0 const IsWindows = 0
const GoosZos = 0 const IsZos = 0

View file

@ -7,20 +7,20 @@ package goos
const GOOS = `linux` const GOOS = `linux`
const GoosAix = 0 const IsAix = 0
const GoosAndroid = 0 const IsAndroid = 0
const GoosDarwin = 0 const IsDarwin = 0
const GoosDragonfly = 0 const IsDragonfly = 0
const GoosFreebsd = 0 const IsFreebsd = 0
const GoosHurd = 0 const IsHurd = 0
const GoosIllumos = 0 const IsIllumos = 0
const GoosIos = 0 const IsIos = 0
const GoosJs = 0 const IsJs = 0
const GoosLinux = 1 const IsLinux = 1
const GoosNacl = 0 const IsNacl = 0
const GoosNetbsd = 0 const IsNetbsd = 0
const GoosOpenbsd = 0 const IsOpenbsd = 0
const GoosPlan9 = 0 const IsPlan9 = 0
const GoosSolaris = 0 const IsSolaris = 0
const GoosWindows = 0 const IsWindows = 0
const GoosZos = 0 const IsZos = 0

View file

@ -7,20 +7,20 @@ package goos
const GOOS = `netbsd` const GOOS = `netbsd`
const GoosAix = 0 const IsAix = 0
const GoosAndroid = 0 const IsAndroid = 0
const GoosDarwin = 0 const IsDarwin = 0
const GoosDragonfly = 0 const IsDragonfly = 0
const GoosFreebsd = 0 const IsFreebsd = 0
const GoosHurd = 0 const IsHurd = 0
const GoosIllumos = 0 const IsIllumos = 0
const GoosIos = 0 const IsIos = 0
const GoosJs = 0 const IsJs = 0
const GoosLinux = 0 const IsLinux = 0
const GoosNacl = 0 const IsNacl = 0
const GoosNetbsd = 1 const IsNetbsd = 1
const GoosOpenbsd = 0 const IsOpenbsd = 0
const GoosPlan9 = 0 const IsPlan9 = 0
const GoosSolaris = 0 const IsSolaris = 0
const GoosWindows = 0 const IsWindows = 0
const GoosZos = 0 const IsZos = 0

View file

@ -7,20 +7,20 @@ package goos
const GOOS = `openbsd` const GOOS = `openbsd`
const GoosAix = 0 const IsAix = 0
const GoosAndroid = 0 const IsAndroid = 0
const GoosDarwin = 0 const IsDarwin = 0
const GoosDragonfly = 0 const IsDragonfly = 0
const GoosFreebsd = 0 const IsFreebsd = 0
const GoosHurd = 0 const IsHurd = 0
const GoosIllumos = 0 const IsIllumos = 0
const GoosIos = 0 const IsIos = 0
const GoosJs = 0 const IsJs = 0
const GoosLinux = 0 const IsLinux = 0
const GoosNacl = 0 const IsNacl = 0
const GoosNetbsd = 0 const IsNetbsd = 0
const GoosOpenbsd = 1 const IsOpenbsd = 1
const GoosPlan9 = 0 const IsPlan9 = 0
const GoosSolaris = 0 const IsSolaris = 0
const GoosWindows = 0 const IsWindows = 0
const GoosZos = 0 const IsZos = 0

View file

@ -7,20 +7,20 @@ package goos
const GOOS = `plan9` const GOOS = `plan9`
const GoosAix = 0 const IsAix = 0
const GoosAndroid = 0 const IsAndroid = 0
const GoosDarwin = 0 const IsDarwin = 0
const GoosDragonfly = 0 const IsDragonfly = 0
const GoosFreebsd = 0 const IsFreebsd = 0
const GoosHurd = 0 const IsHurd = 0
const GoosIllumos = 0 const IsIllumos = 0
const GoosIos = 0 const IsIos = 0
const GoosJs = 0 const IsJs = 0
const GoosLinux = 0 const IsLinux = 0
const GoosNacl = 0 const IsNacl = 0
const GoosNetbsd = 0 const IsNetbsd = 0
const GoosOpenbsd = 0 const IsOpenbsd = 0
const GoosPlan9 = 1 const IsPlan9 = 1
const GoosSolaris = 0 const IsSolaris = 0
const GoosWindows = 0 const IsWindows = 0
const GoosZos = 0 const IsZos = 0

View file

@ -7,20 +7,20 @@ package goos
const GOOS = `solaris` const GOOS = `solaris`
const GoosAix = 0 const IsAix = 0
const GoosAndroid = 0 const IsAndroid = 0
const GoosDarwin = 0 const IsDarwin = 0
const GoosDragonfly = 0 const IsDragonfly = 0
const GoosFreebsd = 0 const IsFreebsd = 0
const GoosHurd = 0 const IsHurd = 0
const GoosIllumos = 0 const IsIllumos = 0
const GoosIos = 0 const IsIos = 0
const GoosJs = 0 const IsJs = 0
const GoosLinux = 0 const IsLinux = 0
const GoosNacl = 0 const IsNacl = 0
const GoosNetbsd = 0 const IsNetbsd = 0
const GoosOpenbsd = 0 const IsOpenbsd = 0
const GoosPlan9 = 0 const IsPlan9 = 0
const GoosSolaris = 1 const IsSolaris = 1
const GoosWindows = 0 const IsWindows = 0
const GoosZos = 0 const IsZos = 0

View file

@ -7,20 +7,20 @@ package goos
const GOOS = `windows` const GOOS = `windows`
const GoosAix = 0 const IsAix = 0
const GoosAndroid = 0 const IsAndroid = 0
const GoosDarwin = 0 const IsDarwin = 0
const GoosDragonfly = 0 const IsDragonfly = 0
const GoosFreebsd = 0 const IsFreebsd = 0
const GoosHurd = 0 const IsHurd = 0
const GoosIllumos = 0 const IsIllumos = 0
const GoosIos = 0 const IsIos = 0
const GoosJs = 0 const IsJs = 0
const GoosLinux = 0 const IsLinux = 0
const GoosNacl = 0 const IsNacl = 0
const GoosNetbsd = 0 const IsNetbsd = 0
const GoosOpenbsd = 0 const IsOpenbsd = 0
const GoosPlan9 = 0 const IsPlan9 = 0
const GoosSolaris = 0 const IsSolaris = 0
const GoosWindows = 1 const IsWindows = 1
const GoosZos = 0 const IsZos = 0

View file

@ -7,20 +7,20 @@ package goos
const GOOS = `zos` const GOOS = `zos`
const GoosAix = 0 const IsAix = 0
const GoosAndroid = 0 const IsAndroid = 0
const GoosDarwin = 0 const IsDarwin = 0
const GoosDragonfly = 0 const IsDragonfly = 0
const GoosFreebsd = 0 const IsFreebsd = 0
const GoosHurd = 0 const IsHurd = 0
const GoosIllumos = 0 const IsIllumos = 0
const GoosIos = 0 const IsIos = 0
const GoosJs = 0 const IsJs = 0
const GoosLinux = 0 const IsLinux = 0
const GoosNacl = 0 const IsNacl = 0
const GoosNetbsd = 0 const IsNetbsd = 0
const GoosOpenbsd = 0 const IsOpenbsd = 0
const GoosPlan9 = 0 const IsPlan9 = 0
const GoosSolaris = 0 const IsSolaris = 0
const GoosWindows = 0 const IsWindows = 0
const GoosZos = 1 const IsZos = 1

View file

@ -10,7 +10,7 @@ import (
) )
// AIX requires a larger stack for syscalls. // AIX requires a larger stack for syscalls.
const StackGuardMultiplier = StackGuardMultiplierDefault*(1-goos.GoosAix) + 2*goos.GoosAix const StackGuardMultiplier = StackGuardMultiplierDefault*(1-goos.IsAix) + 2*goos.IsAix
// DefaultPhysPageSize is the default physical page size. // DefaultPhysPageSize is the default physical page size.
const DefaultPhysPageSize = goarch.DefaultPhysPageSize const DefaultPhysPageSize = goarch.DefaultPhysPageSize
@ -34,47 +34,47 @@ const MinFrameSize = goarch.MinFrameSize
const StackAlign = goarch.StackAlign const StackAlign = goarch.StackAlign
const ( const (
Goarch386 = goarch.Goarch386 Goarch386 = goarch.Is386
GoarchAmd64 = goarch.GoarchAmd64 GoarchAmd64 = goarch.IsAmd64
GoarchAmd64p32 = goarch.GoarchAmd64p32 GoarchAmd64p32 = goarch.IsAmd64p32
GoarchArm = goarch.GoarchArm GoarchArm = goarch.IsArm
GoarchArmbe = goarch.GoarchArmbe GoarchArmbe = goarch.IsArmbe
GoarchArm64 = goarch.GoarchArm64 GoarchArm64 = goarch.IsArm64
GoarchArm64be = goarch.GoarchArm64be GoarchArm64be = goarch.IsArm64be
GoarchPpc64 = goarch.GoarchPpc64 GoarchPpc64 = goarch.IsPpc64
GoarchPpc64le = goarch.GoarchPpc64le GoarchPpc64le = goarch.IsPpc64le
GoarchMips = goarch.GoarchMips GoarchMips = goarch.IsMips
GoarchMipsle = goarch.GoarchMipsle GoarchMipsle = goarch.IsMipsle
GoarchMips64 = goarch.GoarchMips64 GoarchMips64 = goarch.IsMips64
GoarchMips64le = goarch.GoarchMips64le GoarchMips64le = goarch.IsMips64le
GoarchMips64p32 = goarch.GoarchMips64p32 GoarchMips64p32 = goarch.IsMips64p32
GoarchMips64p32le = goarch.GoarchMips64p32le GoarchMips64p32le = goarch.IsMips64p32le
GoarchPpc = goarch.GoarchPpc GoarchPpc = goarch.IsPpc
GoarchRiscv = goarch.GoarchRiscv GoarchRiscv = goarch.IsRiscv
GoarchRiscv64 = goarch.GoarchRiscv64 GoarchRiscv64 = goarch.IsRiscv64
GoarchS390 = goarch.GoarchS390 GoarchS390 = goarch.IsS390
GoarchS390x = goarch.GoarchS390x GoarchS390x = goarch.IsS390x
GoarchSparc = goarch.GoarchSparc GoarchSparc = goarch.IsSparc
GoarchSparc64 = goarch.GoarchSparc64 GoarchSparc64 = goarch.IsSparc64
GoarchWasm = goarch.GoarchWasm GoarchWasm = goarch.IsWasm
) )
const ( const (
GoosAix = goos.GoosAix GoosAix = goos.IsAix
GoosAndroid = goos.GoosAndroid GoosAndroid = goos.IsAndroid
GoosDarwin = goos.GoosDarwin GoosDarwin = goos.IsDarwin
GoosDragonfly = goos.GoosDragonfly GoosDragonfly = goos.IsDragonfly
GoosFreebsd = goos.GoosFreebsd GoosFreebsd = goos.IsFreebsd
GoosHurd = goos.GoosHurd GoosHurd = goos.IsHurd
GoosIllumos = goos.GoosIllumos GoosIllumos = goos.IsIllumos
GoosIos = goos.GoosIos GoosIos = goos.IsIos
GoosJs = goos.GoosJs GoosJs = goos.IsJs
GoosLinux = goos.GoosLinux GoosLinux = goos.IsLinux
GoosNacl = goos.GoosNacl GoosNacl = goos.IsNacl
GoosNetbsd = goos.GoosNetbsd GoosNetbsd = goos.IsNetbsd
GoosOpenbsd = goos.GoosOpenbsd GoosOpenbsd = goos.IsOpenbsd
GoosPlan9 = goos.GoosPlan9 GoosPlan9 = goos.IsPlan9
GoosSolaris = goos.GoosSolaris GoosSolaris = goos.IsSolaris
GoosWindows = goos.GoosWindows GoosWindows = goos.IsWindows
GoosZos = goos.GoosZos GoosZos = goos.IsZos
) )