Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileWatcher ¶
type FileWatcher interface {
Add(path string) error
Remove(path string) error
Close() error
Events(path string) chan fsnotify.Event
Errors(path string) chan error
}
FileWatcher is an interface that watches a set of files, delivering events to related channel.
func NewWatcher ¶
func NewWatcher() FileWatcher
NewWatcher return with a FileWatcher instance that implemented with fsnotify.
Click to show internal directories.
Click to hide internal directories.