f7809189 |
package filenotify
|
f2614f21 |
import "github.com/fsnotify/fsnotify" |
f7809189 |
|
39bcaee4 |
// fsNotifyWatcher wraps the fsnotify package to satisfy the FileNotifier interface |
f7809189 |
type fsNotifyWatcher struct {
*fsnotify.Watcher
}
|
ff2c8986 |
// Events returns the fsnotify event channel receiver |
f7809189 |
func (w *fsNotifyWatcher) Events() <-chan fsnotify.Event {
return w.Watcher.Events
}
|
ff2c8986 |
// Errors returns the fsnotify error channel receiver |
f7809189 |
func (w *fsNotifyWatcher) Errors() <-chan error {
return w.Watcher.Errors
} |