https://github.com/fsnotify/fsnotify This project have the same NewWatcher() in same fsnotify package in inotify.go, kqueue.go, fen.go. How is it possible ?
Read up on build tags. https://dave.cheney.net/2013/10/12/how-to-use-conditional-compilation-with-the-go-build-tool is a good article iirc
The basic idea is that a different version is included depending on the OS you build for.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.