mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-05 08:06:30 +00:00
c28f7cb29f
Initial part of #435
30 lines
431 B
Go
30 lines
431 B
Go
// +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")
|
|
}
|