github.com/gozelle/viper@v1.14.0/watch.go (about)

     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  }