From d0ce736877937f3c7767434cf39e44d42253e522 Mon Sep 17 00:00:00 2001 From: Benjamin Radovsky Date: Wed, 12 Dec 2018 11:45:54 +1100 Subject: [PATCH] Comment out by default to make examples simpler. --- example/basics/main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/example/basics/main.go b/example/basics/main.go index 5eb47cf..05da388 100644 --- a/example/basics/main.go +++ b/example/basics/main.go @@ -11,14 +11,14 @@ import ( func main() { w := watcher.New() - // SetMaxEvents to 1 to allow at most 1 event's to be received + // Uncomment to use SetMaxEvents set to 1 to allow at most 1 event to be received // on the Event channel per watching cycle. // // If SetMaxEvents is not set, the default is to send all events. - w.SetMaxEvents(1) + // w.SetMaxEvents(1) - // Only notify rename and move events. - w.FilterOps(watcher.Rename, watcher.Move) + // Uncomment to only notify rename and move events. + // w.FilterOps(watcher.Rename, watcher.Move) go func() { for {