lister

package
v0.0.0-...-90d7c4e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithMatcher

func WithMatcher(matcher matcher.Matcher) func(*Options)

WithMatcher allows specifying the note matcher.

func WithPath

func WithPath(path string) func(*Options)

WithPath allows specifying the path to start listing from.

Types

type Lister

type Lister struct {
	// contains filtered or unexported fields
}

Lister is a note lister which iterates directories recursively finding matching notes.

func NewLister

func NewLister(opts ...func(o *Options)) (*Lister, error)

NewLister returns an initialized lister.

func (*Lister) Many

func (l *Lister) Many(ctx context.Context) iter.Seq2[*note.Note, error]

Many returns an iterator containing matching notes.

func (*Lister) One

func (l *Lister) One(ctx context.Context) (*note.Note, error)

One returns the first match for the lister.

type Options

type Options struct {
	// contains filtered or unexported fields
}

Options encapsulates the options for note listing.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL