vendor/github.com/spf13/viper/watch_wasm.go
author Mikael Berthe <mikael@lilotux.net>
Sun, 11 Jul 2021 10:35:56 +0200
changeset 256 6d9efbef00a9
permissions -rw-r--r--
Update dependencies

// +build js,wasm

package viper

import (
	"errors"

	"github.com/fsnotify/fsnotify"
)

type watcher struct {
	Events chan fsnotify.Event
	Errors chan error
}

func (*watcher) Close() error {
	return nil
}

func (*watcher) Add(name string) error {
	return nil
}

func (*watcher) Remove(name string) error {
	return nil
}

func newWatcher() (*watcher, error) {
	return &watcher{}, errors.New("fsnotify is not supported on WASM")
}