Debian Codegraph @

tpl/tplimpl/subcategory_string.go

raw
1 // Code generated by "stringer -type SubCategory"; 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[SubCategoryMain-0]
12 _ = x[SubCategoryEmbedded-1]
13 _ = x[SubCategoryInline-2]
14 }
15
16 const _SubCategory_name = "SubCategoryMainSubCategoryEmbeddedSubCategoryInline"
17
18 var _SubCategory_index = [...]uint8{0, 15, 34, 51}
19
20 func (i SubCategory) String() string {
21 if i < 0 || i >= SubCategory(len(_SubCategory_index)-1) {
22 return "SubCategory(" + strconv.FormatInt(int64(i), 10) + ")"
23 }
24 return _SubCategory_name[_SubCategory_index[i]:_SubCategory_index[i+1]]
25 }