Files
postmoogle/vendor/gitlab.com/etke.cc/go/fswatcher/README.md
2023-04-09 22:19:52 +03:00

12 lines
268 B
Markdown

# fswatcher
A handy wrapper around [fsnotify](https://github.com/fsnotify/fsnotify) with deduplication
```go
watcher := fswatcher.New([]string{"/tmp/your-file.txt"}, 0)
defer watcher.Stop()
go watcher.Start(func(e fsnotify.Event){
// do something with event
})
```