Debian Codegraph @

tpl/internal/go_templates/htmltemplate/jsctx_string.go

raw ◀ ▶
1 Debian patch touch this file
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 idx := int(i) - 0
22 if i < 0 || idx >= len(_jsCtx_index)-1 {
23 return "jsCtx(" + strconv.FormatInt(int64(i), 10) + ")"
24 }
•25 return _jsCtx_name[_jsCtx_index[idx]:_jsCtx_index[idx+1]]
26 }