Versions in this module Expand all Collapse all v2 v2.7.8 Oct 13, 2024 Changes in this version + type WatchOption struct + NoRecursive bool v2.7.7 Jun 28, 2024 v2.7.6 Jun 28, 2024 v2.7.5 Jun 27, 2024 v2.7.4 Jun 27, 2024 v2.7.2 Jun 21, 2024 v2.4.4 May 27, 2023 v2.4.3 May 27, 2023 v2.4.2 May 26, 2023 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) Other modules containing this package github.com/joy12825/gf