github.com/twelsh-aw/go/src@v0.0.0-20230516233729-a56fe86a7c81/html/template/state_string.go (about) 1 // Code generated by "stringer -type state"; DO NOT EDIT. 2 3 package template 4 5 import "strconv" 6 7 func _() { 8 // An "invalid array index" compiler error signifies that the constant values have changed. 9 // Re-run the stringer command to generate them again. 10 var x [1]struct{} 11 _ = x[stateText-0] 12 _ = x[stateTag-1] 13 _ = x[stateAttrName-2] 14 _ = x[stateAfterName-3] 15 _ = x[stateBeforeValue-4] 16 _ = x[stateHTMLCmt-5] 17 _ = x[stateRCDATA-6] 18 _ = x[stateAttr-7] 19 _ = x[stateURL-8] 20 _ = x[stateSrcset-9] 21 _ = x[stateJS-10] 22 _ = x[stateJSDqStr-11] 23 _ = x[stateJSSqStr-12] 24 _ = x[stateJSBqStr-13] 25 _ = x[stateJSRegexp-14] 26 _ = x[stateJSBlockCmt-15] 27 _ = x[stateJSLineCmt-16] 28 _ = x[stateCSS-17] 29 _ = x[stateCSSDqStr-18] 30 _ = x[stateCSSSqStr-19] 31 _ = x[stateCSSDqURL-20] 32 _ = x[stateCSSSqURL-21] 33 _ = x[stateCSSURL-22] 34 _ = x[stateCSSBlockCmt-23] 35 _ = x[stateCSSLineCmt-24] 36 _ = x[stateError-25] 37 _ = x[stateDead-26] 38 } 39 40 const _state_name = "stateTextstateTagstateAttrNamestateAfterNamestateBeforeValuestateHTMLCmtstateRCDATAstateAttrstateURLstateSrcsetstateJSstateJSDqStrstateJSSqStrstateJSBqStrstateJSRegexpstateJSBlockCmtstateJSLineCmtstateCSSstateCSSDqStrstateCSSSqStrstateCSSDqURLstateCSSSqURLstateCSSURLstateCSSBlockCmtstateCSSLineCmtstateErrorstateDead" 41 42 var _state_index = [...]uint16{0, 9, 17, 30, 44, 60, 72, 83, 92, 100, 111, 118, 130, 142, 154, 167, 182, 196, 204, 217, 230, 243, 256, 267, 283, 298, 308, 317} 43 44 func (i state) String() string { 45 if i >= state(len(_state_index)-1) { 46 return "state(" + strconv.FormatInt(int64(i), 10) + ")" 47 } 48 return _state_name[_state_index[i]:_state_index[i+1]] 49 }