File: subcategory_string.go

package info (click to toggle)
hugo 0.155.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 43,600 kB
  • sloc: javascript: 31,879; ansic: 2,350; xml: 350; makefile: 196; sh: 110
file content (25 lines) | stat: -rw-r--r-- 739 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Code generated by "stringer -type SubCategory"; DO NOT EDIT.

package tplimpl

import "strconv"

func _() {
	// An "invalid array index" compiler error signifies that the constant values have changed.
	// Re-run the stringer command to generate them again.
	var x [1]struct{}
	_ = x[SubCategoryMain-0]
	_ = x[SubCategoryEmbedded-1]
	_ = x[SubCategoryInline-2]
}

const _SubCategory_name = "SubCategoryMainSubCategoryEmbeddedSubCategoryInline"

var _SubCategory_index = [...]uint8{0, 15, 34, 51}

func (i SubCategory) String() string {
	if i < 0 || i >= SubCategory(len(_SubCategory_index)-1) {
		return "SubCategory(" + strconv.FormatInt(int64(i), 10) + ")"
	}
	return _SubCategory_name[_SubCategory_index[i]:_SubCategory_index[i+1]]
}