aboutsummaryrefslogtreecommitdiff
path: root/src/html/template/element_string.go
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/html/template/element_string.go
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/html/template/element_string.go')
-rw-r--r--src/html/template/element_string.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/html/template/element_string.go b/src/html/template/element_string.go
index 4573e0873e..db286655aa 100644
--- a/src/html/template/element_string.go
+++ b/src/html/template/element_string.go
@@ -4,6 +4,17 @@ package template
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[elementNone-0]
+ _ = x[elementScript-1]
+ _ = x[elementStyle-2]
+ _ = x[elementTextarea-3]
+ _ = x[elementTitle-4]
+}
+
const _element_name = "elementNoneelementScriptelementStyleelementTextareaelementTitle"
var _element_index = [...]uint8{0, 11, 24, 36, 51, 63}