Documentation
¶
Overview ¶
Package watcher provides a filesystem watcher that monitors workspace directories for file changes, filters by extension, respects .gitignore, and debounces events.
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 directory tree for file changes filtered by extension, respecting .gitignore. Events are debounced per-file.
func New ¶
New creates a Watcher for the given root directory. Only files whose extension appears in extensions (e.g. ".go", ".kt") produce events.
Click to show internal directories.
Click to hide internal directories.