f78091897a
This reverts commit ee99b5f2e9
.
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
18 lines
457 B
Go
18 lines
457 B
Go
package filenotify
|
|
|
|
import "gopkg.in/fsnotify.v1"
|
|
|
|
// fsNotify wraps the fsnotify package to satisfy the FileNotifer interface
|
|
type fsNotifyWatcher struct {
|
|
*fsnotify.Watcher
|
|
}
|
|
|
|
// GetEvents returns the fsnotify event channel receiver
|
|
func (w *fsNotifyWatcher) Events() <-chan fsnotify.Event {
|
|
return w.Watcher.Events
|
|
}
|
|
|
|
// GetErrors returns the fsnotify error channel receiver
|
|
func (w *fsNotifyWatcher) Errors() <-chan error {
|
|
return w.Watcher.Errors
|
|
}
|