aboutsummaryrefslogtreecommitdiff
path: root/src/math
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2023-04-11 12:01:43 -0700
committerGopher Robot <gobot@golang.org>2023-04-11 20:24:07 +0000
commit9a0c506a4e4d5be115265a33085626a82eb014c0 (patch)
treea6dd40bffc373c66e1feea3396e9c1cf993c7794 /src/math
parent3974029671ead7fa0bf093e4372d354c7e620800 (diff)
downloadgo-9a0c506a4e4d5be115265a33085626a82eb014c0.tar.xz
all: re-run stringer
Re-run all go:generate stringer commands. This mostly adds checks that the constant values did not change, but does add new strings for the debug/dwarf and internal/pkgbits packages. Change-Id: I5fc41f20da47338152c183d45d5ae65074e2fccf Reviewed-on: https://go-review.googlesource.com/c/go/+/483717 Reviewed-by: Bryan Mills <bcmills@google.com> Run-TryBot: Ian Lance Taylor <iant@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/math')
-rw-r--r--src/math/big/accuracy_string.go9
-rw-r--r--src/math/big/roundingmode_string.go12
2 files changed, 21 insertions, 0 deletions
diff --git a/src/math/big/accuracy_string.go b/src/math/big/accuracy_string.go
index 1501ace00d..aae923829d 100644
--- a/src/math/big/accuracy_string.go
+++ b/src/math/big/accuracy_string.go
@@ -4,6 +4,15 @@ package big
import "strconv"
+func _() {
+ // An "invalid array index" compiler error signifies that the constant values have changed.
+ // Re-run the stringer command to generate them again.
+ var x [1]struct{}
+ _ = x[Below - -1]
+ _ = x[Exact-0]
+ _ = x[Above-1]
+}
+
const _Accuracy_name = "BelowExactAbove"
var _Accuracy_index = [...]uint8{0, 5, 10, 15}
diff --git a/src/math/big/roundingmode_string.go b/src/math/big/roundingmode_string.go
index c7629eb98b..e2f13a63b7 100644
--- a/src/math/big/roundingmode_string.go
+++ b/src/math/big/roundingmode_string.go
@@ -4,6 +4,18 @@ package big
import "strconv"
+func _() {
+ // An "invalid array index" compiler error signifies that the constant values have changed.
+ // Re-run the stringer command to generate them again.
+ var x [1]struct{}
+ _ = x[ToNearestEven-0]
+ _ = x[ToNearestAway-1]
+ _ = x[ToZero-2]
+ _ = x[AwayFromZero-3]
+ _ = x[ToNegativeInf-4]
+ _ = x[ToPositiveInf-5]
+}
+
const _RoundingMode_name = "ToNearestEvenToNearestAwayToZeroAwayFromZeroToNegativeInfToPositiveInf"
var _RoundingMode_index = [...]uint8{0, 13, 26, 32, 44, 57, 70}