hugo itemtype_string 源码

  • 2022-10-23
  • 浏览 (549)

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]]
}

相关信息

hugo 源码目录

相关文章

hugo doc 源码

hugo item 源码

hugo pagelexer 源码

hugo pagelexer_intro 源码

hugo pagelexer_shortcode 源码

hugo pageparser 源码

0  赞