blob: 5dacaa8fbbc25b2e8d3e7380c448e7b0e5623b4e [file] [log] [blame]
// +build darwin freebsd linux netbsd openbsd windows
package follow
// newFSWatcher starts and returns a new fsnotify-based fsWatcher.
// filename specifies the file to watch.
func newFSWatcher(filename string) (*fsWatcher, error) {
watch := newFSNotifyWatch(filename)
return newCustomFSWatcher(watch)
}