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 go get -u 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