github.com/byzk-project-deploy/viper@v0.0.0-20220810051311-c087119cd05b/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 }