Registry / utility / illarion-gonotify

illarion-gonotify

JSON →
library1.0.1gogounverified

A Go library for inotify-based file system event notification on Linux.

go get github.com/illarion/gonotify
INSTALL
IMPORT
SIG · ILLARION-GONOTIFY
I
illarion-gonotify
utilitygov1.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

gonotify
github.com/illarion/gonotify

Watches a directory for file creation events and prints the filename.

package main import ( "fmt" "github.com/illarion/gonotify" ) func main() { watcher, _ := gonotify.NewWatcher() watcher.AddWatch("/tmp", gonotify.IN_CREATE) event := <-watcher.Event fmt.Println(event.Name) }
Debug
Known issues
gotchaOnly works on Linux systems with inotify support.
fix
Use platform-specific build tags or alternative libraries for other OSes.
affects: >=1.0.0
Upgrade
Version history
1.0.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
illarion-gonotify — go get illarion-gonotify · libregistry