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