Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Doc ¶
type Doc struct {
Path string
Type string
Title string
Fields map[string]Value
Tags []string
Headings []Heading
Paths []string
Body string
FMStart int
FMEnd int
CRLF bool
Warnings []string
}
Doc is one markdown file held in memory.
type Value ¶
Value is a single frontmatter value with its parsed kind. Lists are stored JSON-encoded in Str. Dates are stored as YYYY-MM-DD in Str.
func (Value) Len ¶
Len returns element count for lists and rune count for strings. Other kinds return 0.
Click to show internal directories.
Click to hide internal directories.