mirror of
https://github.com/spf13/viper
synced 2024-11-16 10:07:00 +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()
|
|
}
|