Versions in this module Expand all Collapse all v0 v0.6.1 Jan 1, 2024 v0.6.0 Jan 24, 2022 Changes in this version + func Filter(ctx context.Context, notes <-chan Note, predicates ...Predicate) (note <-chan Note, errors <-chan error) + func FindTagByName(note Note, name string) (tag.Tag, bool, error) + func Top(ctx context.Context, limit int, notes <-chan Note, less Less) (note <-chan Note, errors <-chan error) + type Less func(i, j Note) (bool, error) + var CreatedAsc Less = func(first, second Note) (bool, error) { ... } + var CreatedDesc Less = func(first, second Note) (bool, error) { ... } + var ModifiedAsc Less = func(i, j Note) (bool, error) { ... } + var ModifiedDesc Less = func(i, j Note) (bool, error) { ... } + func TagDateAsc(name string) Less + func TagDateDesc(name string) Less + func TagNumberAsc(name string) Less + func TagNumberDesc(name string) Less + type Note interface + Body func() (string, error) + Created func() (time.Time, error) + Modified func() (time.Time, error) + Path func() string + Tags func() ([]tag.Tag, error) + type Predicate func(note Note) (bool, error) + func CreatedAfter(createdAfter string) (Predicate, error) + func CreatedBefore(createdBefore string) (Predicate, error) + func Grep(expr string) (Predicate, error) + func ModifiedAfter(modifiedAfter string) (Predicate, error) + func ModifiedBefore(modifiedBefore string) (Predicate, error) + func NoTag(t string) Predicate + func NoTags() Predicate + func Tag(t string) Predicate + func TagAfter(tagNameValue string) (Predicate, error) + func TagBefore(tagNameValue string) (Predicate, error) + func TagGreater(tagNameValue string) (Predicate, error) + func TagGrep(regex *regexp.Regexp) Predicate + func TagLower(tagNameValue string) (Predicate, error)