Versions in this module Expand all Collapse all v2 v2.0.0 Sep 13, 2024 Changes in this version + func Exit() + func Remove(path string) error + func RemoveCallback(callbackId int) error + type Callback struct + Func func(event *Event) + Id int + Path string + func Add(path string, callbackFunc func(event *Event), recursive ...bool) (callback *Callback, err error) + func AddOnce(name, path string, callbackFunc func(event *Event), recursive ...bool) (callback *Callback, err error) + type Event struct + Op Op + Path string + Watcher *Watcher + func (e *Event) IsChmod() bool + func (e *Event) IsCreate() bool + func (e *Event) IsRemove() bool + func (e *Event) IsRename() bool + func (e *Event) IsWrite() bool + func (e *Event) String() string + type Op uint32 + const CHMOD + const CREATE + const REMOVE + const RENAME + const WRITE + type Watcher struct + func New() (*Watcher, error) + func (w *Watcher) Add(path string, callbackFunc func(event *Event), recursive ...bool) (callback *Callback, err error) + func (w *Watcher) AddOnce(name, path string, callbackFunc func(event *Event), recursive ...bool) (callback *Callback, err error) + func (w *Watcher) Close() + func (w *Watcher) Remove(path string) error + func (w *Watcher) RemoveCallback(callbackId int)