aboutsummaryrefslogtreecommitdiff
path: root/src/html/template/element_string.go
diff options
context:
space:
mode:
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}