Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Watcher ¶
type Watcher struct { OnChange func(filePath string) // callback a user can set to listen for changes OnError func(err error) // callback a user can set to listen for errors // contains filtered or unexported fields }
Watcher is a wrapper around fsnotify to provide a slightly better API. The intention is to eventually extend it.
Click to show internal directories.
Click to hide internal directories.