Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Document ¶
type Document struct {
// contains filtered or unexported fields
}
Document represents a chunk of Markdown text in UTF-8 as HTML.
func (*Document) Borrow ¶
Borrow allows access to the underlying document content. buf should not be retained outside of fn.
type Index ¶
type Index struct {
// contains filtered or unexported fields
}
Index is a map of file paths to documents.
func (*Index) Add ¶
Add creates a new document in the index. If the file path exists, the existing document is returned.
type Library ¶
type Library struct {
*Index
// contains filtered or unexported fields
}
Library is an index of documents backed by a source.
func NewLibrary ¶
NewLibrary creates a new library with the given source and Markdown converter.
Click to show internal directories.
Click to hide internal directories.