Versions in this module Expand all Collapse all v0 v0.1.5 Jun 7, 2026 v0.1.4 Jun 6, 2026 Changes in this version + var ErrInvalidPattern = errors.New("watchdog: invalid glob pattern") + var ErrPathNotFound = errors.New("watchdog: path does not exist") + var ErrWatcherClosed = errors.New("watchdog: watcher is closed") + type Event struct + Op Op + Path string + Size int64 + Time time.Time + type HandlerFunc func(Event) + type Op uint32 + const Created + const Deleted + const Modified + const Renamed + func (op Op) String() string + type Option func(*config) + func WithDebounce(d time.Duration) Option + func WithIgnore(patterns ...string) Option + func WithRecursive(r bool) Option + type Watcher struct + func New(opts ...Option) *Watcher + func (w *Watcher) On(op Op, pattern string, fn HandlerFunc) error + func (w *Watcher) Start(paths ...string) error + func (w *Watcher) Stop()