2022-11-06 05:08:24 +03:00
|
|
|
//go:build appengine || (!darwin && !dragonfly && !freebsd && !openbsd && !linux && !netbsd && !solaris && !windows)
|
2021-04-22 12:35:02 +03:00
|
|
|
|
|
|
|
package viper
|
|
|
|
|
|
|
|
import (
|
2022-11-03 22:21:21 +03:00
|
|
|
"fmt"
|
|
|
|
"runtime"
|
2021-04-22 12:35:02 +03:00
|
|
|
|
|
|
|
"github.com/fsnotify/fsnotify"
|
|
|
|
)
|
|
|
|
|
2022-11-03 22:21:21 +03:00
|
|
|
func newWatcher() (*watcher, error) {
|
|
|
|
return &watcher{}, fmt.Errorf("fsnotify not supported on %s", runtime.GOOS)
|
|
|
|
}
|
|
|
|
|
2021-04-22 12:35:02 +03:00
|
|
|
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
|
|
|
|
}
|