mirror of https://github.com/k3d-io/k3d
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
431 B
31 lines
431 B
3 years ago
|
// +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")
|
||
|
}
|