github.com/17media/viper@v1.13.0/watch.go (about)

     1  //go:build !js
     2  // +build !js
     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  }