Documentation
¶
Overview ¶
Package file uses the fsnotify library to watch for changes to files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Watcher ¶
type Watcher struct { Updates <-chan struct{} Errors <-chan error // contains filtered or unexported fields }
Watcher watches for changes to a single named file or directory. It notifies the Updates chan on any changes to the watched file, while also handling parts of the path hierarchy to the file being removed and recreated.
func Watch ¶
Watch creates a new file watcher for the given filename.
Click to show internal directories.
Click to hide internal directories.