Versions in this module Expand all Collapse all v1 v1.16.2 Mar 24, 2021 v1.16.1 Mar 24, 2021 v1.15.9 Mar 24, 2021 v1.15.8 Feb 8, 2021 v1.15.7 Feb 8, 2021 v1.15.6 Feb 5, 2021 v1.15.5 Feb 5, 2021 v1.15.4 Feb 5, 2021 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)