Skip to content

Commit

Permalink
Comment out by default to make examples simpler.
Browse files Browse the repository at this point in the history
  • Loading branch information
radovskyb committed Dec 12, 2018
1 parent 428d358 commit d0ce736
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions example/basics/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d0ce736

Please sign in to comment.