Versions in this module Expand all Collapse all v0 v0.1.0 Oct 26, 2020 Changes in this version + type Collection struct + func DirGraph(path string) (graph *Collection, entryErrs []error, err error) + func NewCollection() *Collection + func (collection *Collection) Add(entry *Entry) error + func (collection *Collection) AddMany(entries ...*Entry) error + func (collection *Collection) Delete(entry *Entry) error + func (collection *Collection) Filter(filters ...Filter) (*Collection, error) + func (collection *Collection) FindLinksTo(entry *Entry) []Link + func (collection *Collection) In(entry *Entry) bool + func (collection *Collection) Len() int + func (collection *Collection) List() List + func (collection *Collection) ResolveLink(link Link) *Entry + type Entry struct + Contents string + Date time.Time + Metadata map[string]interface{} + ModTime time.Time + OriginalContents string + OutboundLinks []Link + Path string + Tags []string + Title string + func NewEntryFromFile(originalPath string) (*Entry, error) + type ErrEntryAlreadyExists struct + Path string + Title string + func (e ErrEntryAlreadyExists) Error() string + type ErrEntryDoesntExist struct + Path string + Title string + func (e ErrEntryDoesntExist) Error() string + type ErrEntryParseFailed struct + Err error + Path string + func (e ErrEntryParseFailed) Error() string + func (e ErrEntryParseFailed) Unwrap() error + type ErrEntryReadFailed struct + Err error + Path string + func (e ErrEntryReadFailed) Error() string + func (e ErrEntryReadFailed) Unwrap() error + type ErrListOutOfBounds struct + Index int + Len int + func (e ErrListOutOfBounds) Error() string + type Filter func(*Entry) bool + func FilterAnd(filters ...Filter) Filter + func FilterContentsExact(contents ...string) Filter + func FilterContentsMatch(substrings ...string) Filter + func FilterFrom(date time.Time) Filter + func FilterLength(length int) Filter + func FilterNot(filters ...Filter) Filter + func FilterOr(filters ...Filter) Filter + func FilterPathsExact(paths ...string) Filter + func FilterPathsMatch(paths ...string) Filter + func FilterTags(tags ...string) Filter + func FilterTitlesExact(titles ...string) Filter + func FilterTitlesMatch(titles ...string) Filter + func FilterUntil(date time.Time) Filter + type Link struct + Loc []int + Name string + Parent *Entry + Path string + Title string + Type LinkType + type LinkType int + const LinkPathNoName + const LinkPathWithName + const LinkTitleNoName + const LinkTitleWithName + type List struct + func (es List) First(n int) List + func (es List) FromOffset(offset, n int) (List, error) + func (es List) Last(n int) List + func (es List) Reverse() List + func (es List) Slice() []*Entry + func (es List) Sort(sortType SortType) List + type Parser struct + func NewParser(dateLayout, builtinTagPrefix, customTagPrefix string) (Parser, error) + func (p Parser) Parse(path, content string) (*Entry, error) + type Query struct + ContentsExact [][]string + ContentsExactExclude [][]string + ContentsMatch [][]string + ContentsMatchExclude [][]string + From time.Time + MaxLength int + MinLength int + PathsExact [][]string + PathsExactExclude [][]string + PathsMatch [][]string + PathsMatchExclude [][]string + Tags []string + TagsExclude []string + TitlesExact [][]string + TitlesExactExclude [][]string + TitlesMatch [][]string + TitlesMatchExclude [][]string + Until time.Time + func (q *Query) Filter() Filter + type SortType int + const SortAlpha + const SortDate + const SortPath + type SortableByAlpha []*Entry + func (es SortableByAlpha) Len() int + func (es SortableByAlpha) Less(i, j int) bool + func (es SortableByAlpha) Swap(i, j int) + type SortableByDate []*Entry + func (es SortableByDate) Len() int + func (es SortableByDate) Less(i, j int) bool + func (es SortableByDate) Swap(i, j int) + type SortableByPathAlpha []*Entry + func (es SortableByPathAlpha) Len() int + func (es SortableByPathAlpha) Less(i, j int) bool + func (es SortableByPathAlpha) Swap(i, j int) + type YAMLFrontMatter struct + Date string + Tags []string + Title string