Versions in this module Expand all Collapse all v0 v0.1.0 May 18, 2026 Changes in this version + const All + var ErrAlreadyAdded = errors.New("fswatcher: path already added") + var ErrClosed = errors.New("fswatcher: watcher closed") + var ErrNotAdded = errors.New("fswatcher: path not added") + var ErrUnsupported = errors.New("fswatcher: platform not supported") + type Event struct + Name string + Op Op + func (e Event) String() string + type Op uint32 + const Chmod + const Create + const Remove + const Rename + const Write + func (op Op) Has(target Op) bool + func (op Op) String() string + type Watcher struct + Errors <-chan error + Errors chan error + Events <-chan Event + Events chan Event + func NewWatcher() (*Watcher, error) + func (w *Watcher) Add(path string, op Op) error + func (w *Watcher) Add(string, Op) error + func (w *Watcher) AddRecursive(path string, op Op) error + func (w *Watcher) AddRecursive(string, Op) error + func (w *Watcher) Close() error + func (w *Watcher) Remove(path string) error + func (w *Watcher) Remove(string) error