aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
authorMichael Anthony Knyszek <mknyszek@google.com>2021-06-16 21:47:33 +0000
committerMichael Knyszek <mknyszek@google.com>2021-06-17 21:28:55 +0000
commit81a6a4354b8f64b9f3a3d870e366cd8af48afbdd (patch)
tree553b279dbce6a93c7532dca56a42f5c0b45b85db /src/runtime
parent33d1b82d16a199b1f8c61cba40b4d883088ca278 (diff)
downloadgo-81a6a4354b8f64b9f3a3d870e366cd8af48afbdd.tar.xz
[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>
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/internal/sys/consts.go82
1 files changed, 41 insertions, 41 deletions
diff --git a/src/runtime/internal/sys/consts.go b/src/runtime/internal/sys/consts.go
index 6400c10748..ab0a02671a 100644
--- a/src/runtime/internal/sys/consts.go
+++ b/src/runtime/internal/sys/consts.go
@@ -10,7 +10,7 @@ import (
)
// 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.
const DefaultPhysPageSize = goarch.DefaultPhysPageSize
@@ -34,47 +34,47 @@ const MinFrameSize = goarch.MinFrameSize
const StackAlign = goarch.StackAlign
const (
- Goarch386 = goarch.Goarch386
- GoarchAmd64 = goarch.GoarchAmd64
- GoarchAmd64p32 = goarch.GoarchAmd64p32
- GoarchArm = goarch.GoarchArm
- GoarchArmbe = goarch.GoarchArmbe
- GoarchArm64 = goarch.GoarchArm64
- GoarchArm64be = goarch.GoarchArm64be
- GoarchPpc64 = goarch.GoarchPpc64
- GoarchPpc64le = goarch.GoarchPpc64le
- GoarchMips = goarch.GoarchMips
- GoarchMipsle = goarch.GoarchMipsle
- GoarchMips64 = goarch.GoarchMips64
- GoarchMips64le = goarch.GoarchMips64le
- GoarchMips64p32 = goarch.GoarchMips64p32
- GoarchMips64p32le = goarch.GoarchMips64p32le
- GoarchPpc = goarch.GoarchPpc
- GoarchRiscv = goarch.GoarchRiscv
- GoarchRiscv64 = goarch.GoarchRiscv64
- GoarchS390 = goarch.GoarchS390
- GoarchS390x = goarch.GoarchS390x
- GoarchSparc = goarch.GoarchSparc
- GoarchSparc64 = goarch.GoarchSparc64
- GoarchWasm = goarch.GoarchWasm
+ Goarch386 = goarch.Is386
+ GoarchAmd64 = goarch.IsAmd64
+ GoarchAmd64p32 = goarch.IsAmd64p32
+ GoarchArm = goarch.IsArm
+ GoarchArmbe = goarch.IsArmbe
+ GoarchArm64 = goarch.IsArm64
+ GoarchArm64be = goarch.IsArm64be
+ GoarchPpc64 = goarch.IsPpc64
+ GoarchPpc64le = goarch.IsPpc64le
+ GoarchMips = goarch.IsMips
+ GoarchMipsle = goarch.IsMipsle
+ GoarchMips64 = goarch.IsMips64
+ GoarchMips64le = goarch.IsMips64le
+ GoarchMips64p32 = goarch.IsMips64p32
+ GoarchMips64p32le = goarch.IsMips64p32le
+ GoarchPpc = goarch.IsPpc
+ GoarchRiscv = goarch.IsRiscv
+ GoarchRiscv64 = goarch.IsRiscv64
+ GoarchS390 = goarch.IsS390
+ GoarchS390x = goarch.IsS390x
+ GoarchSparc = goarch.IsSparc
+ GoarchSparc64 = goarch.IsSparc64
+ GoarchWasm = goarch.IsWasm
)
const (
- GoosAix = goos.GoosAix
- GoosAndroid = goos.GoosAndroid
- GoosDarwin = goos.GoosDarwin
- GoosDragonfly = goos.GoosDragonfly
- GoosFreebsd = goos.GoosFreebsd
- GoosHurd = goos.GoosHurd
- GoosIllumos = goos.GoosIllumos
- GoosIos = goos.GoosIos
- GoosJs = goos.GoosJs
- GoosLinux = goos.GoosLinux
- GoosNacl = goos.GoosNacl
- GoosNetbsd = goos.GoosNetbsd
- GoosOpenbsd = goos.GoosOpenbsd
- GoosPlan9 = goos.GoosPlan9
- GoosSolaris = goos.GoosSolaris
- GoosWindows = goos.GoosWindows
- GoosZos = goos.GoosZos
+ GoosAix = goos.IsAix
+ GoosAndroid = goos.IsAndroid
+ GoosDarwin = goos.IsDarwin
+ GoosDragonfly = goos.IsDragonfly
+ GoosFreebsd = goos.IsFreebsd
+ GoosHurd = goos.IsHurd
+ GoosIllumos = goos.IsIllumos
+ GoosIos = goos.IsIos
+ GoosJs = goos.IsJs
+ GoosLinux = goos.IsLinux
+ GoosNacl = goos.IsNacl
+ GoosNetbsd = goos.IsNetbsd
+ GoosOpenbsd = goos.IsOpenbsd
+ GoosPlan9 = goos.IsPlan9
+ GoosSolaris = goos.IsSolaris
+ GoosWindows = goos.IsWindows
+ GoosZos = goos.IsZos
)