2023-01-28 13:57:53 -08:00
|
|
|
//go:build appengine || (!darwin && !dragonfly && !freebsd && !openbsd && !linux && !netbsd && !solaris && !windows)
|
|
|
|
// +build appengine !darwin,!dragonfly,!freebsd,!openbsd,!linux,!netbsd,!solaris,!windows
|
2021-06-16 12:00:49 -07:00
|
|
|
|
|
|
|
package viper
|
|
|
|
|
|
|
|
import (
|
2023-01-28 13:57:53 -08:00
|
|
|
"fmt"
|
|
|
|
"runtime"
|
2021-06-16 12:00:49 -07:00
|
|
|
|
|
|
|
"github.com/fsnotify/fsnotify"
|
|
|
|
)
|
|
|
|
|
2023-01-28 13:57:53 -08:00
|
|
|
func newWatcher() (*watcher, error) {
|
|
|
|
return &watcher{}, fmt.Errorf("fsnotify not supported on %s", runtime.GOOS)
|
|
|
|
}
|
|
|
|
|
2021-06-16 12:00:49 -07: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
|
|
|
|
}
|