Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
Watcher watches a set of directories for .md file changes and calls onChange. Meta directories additionally trigger onChange on any event — they cover state whose shape matters more than its content, like the git common dir's worktrees/ registry.
func (*Watcher) SetDirs ¶
SetDirs replaces the watched directory sets. Stale watches are removed and new roots added; safe to call before Start (Start picks the sets up) or from the onChange callback while running.
Click to show internal directories.
Click to hide internal directories.