From cd910abd4577c67979ec5a58181988965b941cba Mon Sep 17 00:00:00 2001 From: Teddy Sommavilla Date: Tue, 22 Apr 2025 11:39:02 +0200 Subject: [PATCH] doc(fsnotifyext): add godoc for GetChan method --- internal/fsnotifyext/fsnotify_dedup.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/fsnotifyext/fsnotify_dedup.go b/internal/fsnotifyext/fsnotify_dedup.go index 384ef42b..def9b6c7 100644 --- a/internal/fsnotifyext/fsnotify_dedup.go +++ b/internal/fsnotifyext/fsnotify_dedup.go @@ -19,6 +19,9 @@ func NewDeduper(w *fsnotify.Watcher, waitTime time.Duration) *Deduper { } } +// GetChan returns a chan of deduplicated [fsnotify.Event]. +// +// [fsnotify.Chmod] operations will be skipped. func (d *Deduper) GetChan() <-chan fsnotify.Event { channel := make(chan fsnotify.Event)