watch.go (324B)
1 //go:build darwin || dragonfly || freebsd || openbsd || linux || netbsd || solaris || windows 2 // +build darwin dragonfly freebsd openbsd linux netbsd solaris windows 3 4 package viper 5 6 import "github.com/fsnotify/fsnotify" 7 8 type watcher = fsnotify.Watcher 9 10 func newWatcher() (*watcher, error) { 11 return fsnotify.NewWatcher() 12 }