export fswatcher to a separate library

This commit is contained in:
Aine
2023-04-09 22:19:52 +03:00
parent 321060d2d6
commit e8ade4173f
135 changed files with 1212 additions and 877 deletions

11
vendor/gitlab.com/etke.cc/go/fswatcher/README.md generated vendored Normal file
View File

@@ -0,0 +1,11 @@
# 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
})
```