postmoogle/vendor/github.com/etkecc/go-fswatcher
2024-08-20 22:56:56 +03:00
..
fswatcher.go migrate to github 2024-08-20 22:56:56 +03:00
justfile migrate to github 2024-08-20 22:56:56 +03:00
LICENSE migrate to github 2024-08-20 22:56:56 +03:00
README.md migrate to github 2024-08-20 22:56:56 +03:00

fswatcher

A handy wrapper around fsnotify with deduplication

watcher := fswatcher.New([]string{"/tmp/your-file.txt"}, 0)
defer watcher.Stop()
go watcher.Start(func(e fsnotify.Event){
	// do something with event
})