itemtype_string.go (1486B)
1 // Code generated by "stringer -type ItemType"; DO NOT EDIT. 2 3 package pageparser 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[tError-0] 12 _ = x[tEOF-1] 13 _ = x[TypeLeadSummaryDivider-2] 14 _ = x[TypeFrontMatterYAML-3] 15 _ = x[TypeFrontMatterTOML-4] 16 _ = x[TypeFrontMatterJSON-5] 17 _ = x[TypeFrontMatterORG-6] 18 _ = x[TypeEmoji-7] 19 _ = x[TypeIgnore-8] 20 _ = x[tLeftDelimScNoMarkup-9] 21 _ = x[tRightDelimScNoMarkup-10] 22 _ = x[tLeftDelimScWithMarkup-11] 23 _ = x[tRightDelimScWithMarkup-12] 24 _ = x[tScClose-13] 25 _ = x[tScName-14] 26 _ = x[tScNameInline-15] 27 _ = x[tScParam-16] 28 _ = x[tScParamVal-17] 29 _ = x[tIndentation-18] 30 _ = x[tText-19] 31 _ = x[tKeywordMarker-20] 32 } 33 34 const _ItemType_name = "tErrortEOFTypeLeadSummaryDividerTypeFrontMatterYAMLTypeFrontMatterTOMLTypeFrontMatterJSONTypeFrontMatterORGTypeEmojiTypeIgnoretLeftDelimScNoMarkuptRightDelimScNoMarkuptLeftDelimScWithMarkuptRightDelimScWithMarkuptScClosetScNametScNameInlinetScParamtScParamValtIndentationtTexttKeywordMarker" 35 36 var _ItemType_index = [...]uint16{0, 6, 10, 32, 51, 70, 89, 107, 116, 126, 146, 167, 189, 212, 220, 227, 240, 248, 259, 271, 276, 290} 37 38 func (i ItemType) String() string { 39 if i < 0 || i >= ItemType(len(_ItemType_index)-1) { 40 return "ItemType(" + strconv.FormatInt(int64(i), 10) + ")" 41 } 42 return _ItemType_name[_ItemType_index[i]:_ItemType_index[i+1]] 43 }