hugo itemtype_string 源码
hugo itemtype_string 代码
文件路径:/parser/pageparser/itemtype_string.go
// Code generated by "stringer -type ItemType"; DO NOT EDIT.
package pageparser
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[tError-0]
_ = x[tEOF-1]
_ = x[TypeLeadSummaryDivider-2]
_ = x[TypeFrontMatterYAML-3]
_ = x[TypeFrontMatterTOML-4]
_ = x[TypeFrontMatterJSON-5]
_ = x[TypeFrontMatterORG-6]
_ = x[TypeEmoji-7]
_ = x[TypeIgnore-8]
_ = x[tLeftDelimScNoMarkup-9]
_ = x[tRightDelimScNoMarkup-10]
_ = x[tLeftDelimScWithMarkup-11]
_ = x[tRightDelimScWithMarkup-12]
_ = x[tScClose-13]
_ = x[tScName-14]
_ = x[tScNameInline-15]
_ = x[tScParam-16]
_ = x[tScParamVal-17]
_ = x[tIndentation-18]
_ = x[tText-19]
_ = x[tKeywordMarker-20]
}
const _ItemType_name = "tErrortEOFTypeLeadSummaryDividerTypeFrontMatterYAMLTypeFrontMatterTOMLTypeFrontMatterJSONTypeFrontMatterORGTypeEmojiTypeIgnoretLeftDelimScNoMarkuptRightDelimScNoMarkuptLeftDelimScWithMarkuptRightDelimScWithMarkuptScClosetScNametScNameInlinetScParamtScParamValtIndentationtTexttKeywordMarker"
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}
func (i ItemType) String() string {
if i < 0 || i >= ItemType(len(_ItemType_index)-1) {
return "ItemType(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _ItemType_name[_ItemType_index[i]:_ItemType_index[i+1]]
}
相关信息
相关文章
0
赞
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦