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 file or directory for changes and calls onChange when a relevant file is modified, with debouncing.
func NewWatcher ¶
NewWatcher creates a new file watcher. If extensions is nil or empty, all file changes are reported.
Click to show internal directories.
Click to hide internal directories.