Versions in this module Expand all Collapse all v0 v0.0.4 Jun 30, 2024 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 watch") + 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 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 NewBufferedWatcher(sz uint) (*Watcher, error) + 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