Versions in this module Expand all Collapse all v1 v1.6.2 Mar 7, 2023 v1.6.1 Mar 7, 2023 Changes in this version + var ErrClosed = errors.New("fsnotify: watcher already closed") + var ErrEventOverflow = errors.New("fsnotify: queue or buffer overflow") + var ErrNonExistentWatch = errors.New("fsnotify: can't remove non-existent watcher") + func WithBufferSize(bytes int) addOpt + type Event struct + Name string + Op Op + func (e Event) Has(op Op) bool + func (e Event) String() string + type Op uint32 + const Chmod + const Close + const Create + const Remove + const Rename + const Write + func (o Op) Has(h Op) bool + func (o Op) String() string + type Watcher struct + Errors chan error + Events chan Event + func NewWatcher() (*Watcher, error) + func (w *Watcher) Add(name string) error + func (w *Watcher) AddWith(name string, opts ...addOpt) error + func (w *Watcher) Close() error + func (w *Watcher) Remove(name string) error + func (w *Watcher) WatchList() []string