Versions in this module Expand all Collapse all v1 v1.0.0 Dec 20, 2022 Changes in this version + func FormatFromFrontMatterType(typ ItemType) metadecoders.Format + func IsProbablySourceOfItems(source []byte, items Items) bool + type Config struct + EnableEmoji bool + type ContentFrontMatter struct + Content []byte + FrontMatter map[string]any + FrontMatterFormat metadecoders.Format + func ParseFrontMatterAndContent(r io.Reader) (ContentFrontMatter, error) + type Item struct + Err error + Type ItemType + func (i Item) IsDone() bool + func (i Item) IsEOF() bool + func (i Item) IsError() bool + func (i Item) IsFrontMatter() bool + func (i Item) IsIndentation() bool + func (i Item) IsInlineShortcodeName() bool + func (i Item) IsLeftShortcodeDelim() bool + func (i Item) IsNonWhitespace(source []byte) bool + func (i Item) IsRightShortcodeDelim() bool + func (i Item) IsShortcodeClose() bool + func (i Item) IsShortcodeMarkupDelimiter() bool + func (i Item) IsShortcodeName() bool + func (i Item) IsShortcodeParam() bool + func (i Item) IsShortcodeParamVal() bool + func (i Item) IsText() bool + func (i Item) Pos() int + func (i Item) ToString(source []byte) string + func (i Item) Val(source []byte) []byte + func (i Item) ValStr(source []byte) string + func (i Item) ValTyped(source []byte) any + type ItemType int + const TypeEmoji + const TypeFrontMatterJSON + const TypeFrontMatterORG + const TypeFrontMatterTOML + const TypeFrontMatterYAML + const TypeIgnore + const TypeLeadSummaryDivider + func (i ItemType) String() string + type Items []Item + type Iterator struct + func NewIterator(items Items) *Iterator + func (t *Iterator) Backup() + func (t *Iterator) Consume(cnt int) + func (t *Iterator) Current() Item + func (t *Iterator) IsValueNext() bool + func (t *Iterator) LineNumber(source []byte) int + func (t *Iterator) Next() Item + func (t *Iterator) Peek() Item + func (t *Iterator) PeekWalk(walkFn func(item Item) bool) + func (t *Iterator) Pos() int + type Result interface + Input func() []byte + Iterator func() *Iterator + func Parse(r io.Reader, cfg Config) (Result, error) + func ParseMain(r io.Reader, cfg Config) (Result, error)