diff options
| author | Ian Lance Taylor <iant@golang.org> | 2023-04-11 12:01:43 -0700 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-04-11 20:24:07 +0000 |
| commit | 9a0c506a4e4d5be115265a33085626a82eb014c0 (patch) | |
| tree | a6dd40bffc373c66e1feea3396e9c1cf993c7794 /src/html | |
| parent | 3974029671ead7fa0bf093e4372d354c7e620800 (diff) | |
| download | go-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')
| -rw-r--r-- | src/html/template/attr_string.go | 12 | ||||
| -rw-r--r-- | src/html/template/delim_string.go | 10 | ||||
| -rw-r--r-- | src/html/template/element_string.go | 11 | ||||
| -rw-r--r-- | src/html/template/urlpart_string.go | 10 |
4 files changed, 43 insertions, 0 deletions
diff --git a/src/html/template/attr_string.go b/src/html/template/attr_string.go index babe70c08b..51c3f26208 100644 --- a/src/html/template/attr_string.go +++ b/src/html/template/attr_string.go @@ -4,6 +4,18 @@ 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[attrNone-0] + _ = x[attrScript-1] + _ = x[attrScriptType-2] + _ = x[attrStyle-3] + _ = x[attrURL-4] + _ = x[attrSrcset-5] +} + const _attr_name = "attrNoneattrScriptattrScriptTypeattrStyleattrURLattrSrcset" var _attr_index = [...]uint8{0, 8, 18, 32, 41, 48, 58} diff --git a/src/html/template/delim_string.go b/src/html/template/delim_string.go index 6d80e09a44..8d82850223 100644 --- a/src/html/template/delim_string.go +++ b/src/html/template/delim_string.go @@ -4,6 +4,16 @@ 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[delimNone-0] + _ = x[delimDoubleQuote-1] + _ = x[delimSingleQuote-2] + _ = x[delimSpaceOrTagEnd-3] +} + const _delim_name = "delimNonedelimDoubleQuotedelimSingleQuotedelimSpaceOrTagEnd" var _delim_index = [...]uint8{0, 9, 25, 41, 59} 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} diff --git a/src/html/template/urlpart_string.go b/src/html/template/urlpart_string.go index 813eea9e44..7bc957e81d 100644 --- a/src/html/template/urlpart_string.go +++ b/src/html/template/urlpart_string.go @@ -4,6 +4,16 @@ 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[urlPartNone-0] + _ = x[urlPartPreQuery-1] + _ = x[urlPartQueryOrFrag-2] + _ = x[urlPartUnknown-3] +} + const _urlPart_name = "urlPartNoneurlPartPreQueryurlPartQueryOrFragurlPartUnknown" var _urlPart_index = [...]uint8{0, 11, 26, 44, 58} |
