Source file src/html/template/jsctx_string.go
1 // Code generated by "stringer -type jsCtx"; 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[jsCtxRegexp-0] 12 _ = x[jsCtxDivOp-1] 13 _ = x[jsCtxUnknown-2] 14 } 15 16 const _jsCtx_name = "jsCtxRegexpjsCtxDivOpjsCtxUnknown" 17 18 var _jsCtx_index = [...]uint8{0, 11, 21, 33} 19 20 func (i jsCtx) String() string { 21 if i >= jsCtx(len(_jsCtx_index)-1) { 22 return "jsCtx(" + strconv.FormatInt(int64(i), 10) + ")" 23 } 24 return _jsCtx_name[_jsCtx_index[i]:_jsCtx_index[i+1]] 25 } 26