Package fsnotify provides a platform-independent interface for file system notifications.
Common errors that can be reported by a watcher
Event represents a single file system notification.
String returns a string representation of the event in the form "file: REMOVE|WRITE|..."
Op describes a set of file operations.
These are the generalized file operations that can trigger a notification.
Watcher watches a set of files, delivering events to a channel.
NewWatcher establishes a new watcher with the underlying OS and begins waiting for events.
Add starts watching the named file or directory (non-recursively).
Close removes all watches and closes the events channel.
Remove stops watching the named file or directory (non-recursively).