From 7bedd4c32ada4f461ddb486f979702a5d67731de Mon Sep 17 00:00:00 2001 From: asoseil Date: Sat, 11 Nov 2017 22:54:25 +0100 Subject: [PATCH] method comments --- notify.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/notify.go b/notify.go index 19eac5a..eda781a 100644 --- a/notify.go +++ b/notify.go @@ -95,6 +95,7 @@ func (w *fsNotifyWatcher) Events() <-chan fsnotify.Event { return w.Watcher.Events } +// Walk fsnotify func (w *fsNotifyWatcher) Walk(path string, init bool) string { if err := w.Add(path); err != nil { return "" @@ -157,6 +158,7 @@ func (w *filePoller) Add(name string) error { return nil } +// Remove poller func (w *filePoller) remove(name string) error { if w.closed { return errPollerClosed @@ -184,6 +186,7 @@ func (w *filePoller) Events() <-chan fsnotify.Event { return w.events } +// Walk poller func (w *filePoller) Walk(path string, init bool) string { check := w.watches[path] if err := w.Add(path); err != nil {