The [fsnotify]() is the most broadly used package for observing file changes. It supports multiple platforms and notification mechanisms: inotify (Linux) kqueue (BSD, MacOS, iOS) ReadDirectoryChangesW (Windows) Installation go get -u golang.org/x/sys/... go get -u github.com/fsnotify/fsnotify Usage The package itself is very minimalistic but provides the great benefit of observing file for changes. To get started, you have to initialize the watcher and register for monitoring the desired file path (can be file or directory): read more