| 1 |
// Code generated by "stringer -type Type"; DO NOT EDIT. |
| 2 |
|
| 3 |
package paths |
| 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[TypeFile-0] |
| 12 |
_ = x[TypeContentResource-1] |
| 13 |
_ = x[TypeContentSingle-2] |
| 14 |
_ = x[TypeLeaf-3] |
| 15 |
_ = x[TypeBranch-4] |
| 16 |
_ = x[TypeContentData-5] |
| 17 |
_ = x[TypeMarkup-6] |
| 18 |
_ = x[TypeShortcode-7] |
| 19 |
_ = x[TypePartial-8] |
| 20 |
_ = x[TypeBaseof-9] |
| 21 |
} |
| 22 |
|
| 23 |
const _Type_name = "TypeFileTypeContentResourceTypeContentSingleTypeLeafTypeBranchTypeContentDataTypeMarkupTypeShortcodeTypePartialTypeBaseof" |
| 24 |
|
| 25 |
var _Type_index = [...]uint8{0, 8, 27, 44, 52, 62, 77, 87, 100, 111, 121} |
| 26 |
|
| 27 |
func (i Type) String() string { |
| 28 |
if i < 0 || i >= Type(len(_Type_index)-1) { |
| 29 |
return "Type(" + strconv.FormatInt(int64(i), 10) + ")" |
| 30 |
} |
| 31 |
return _Type_name[_Type_index[i]:_Type_index[i+1]] |
| 32 |
} |