mirror of
https://github.com/spf13/viper
synced 2024-12-22 03:27:03 +00:00
36be6bf91f
fsnotify is not available on WASM, so config watching is not going to work. Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
11 lines
172 B
Go
11 lines
172 B
Go
// +build !js
|
|
|
|
package viper
|
|
|
|
import "github.com/fsnotify/fsnotify"
|
|
|
|
type watcher = fsnotify.Watcher
|
|
|
|
func newWatcher() (*watcher, error) {
|
|
return fsnotify.NewWatcher()
|
|
}
|