Debian Codegraph @

tpl/tplimpl/category_string.go

raw
1 // Code generated by "stringer -type Category"; DO NOT EDIT.
2
3 package tplimpl
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[CategoryLayout-1]
12 _ = x[CategoryBaseof-2]
13 _ = x[CategoryMarkup-3]
14 _ = x[CategoryShortcode-4]
15 _ = x[CategoryPartial-5]
16 _ = x[CategoryServer-6]
17 _ = x[CategoryHugo-7]
18 }
19
20 const _Category_name = "CategoryLayoutCategoryBaseofCategoryMarkupCategoryShortcodeCategoryPartialCategoryServerCategoryHugo"
21
22 var _Category_index = [...]uint8{0, 14, 28, 42, 59, 74, 88, 100}
23
24 func (i Category) String() string {
25 i -= 1
26 if i < 0 || i >= Category(len(_Category_index)-1) {
27 return "Category(" + strconv.FormatInt(int64(i+1), 10) + ")"
28 }
29 return _Category_name[_Category_index[i]:_Category_index[i+1]]
30 }