mirror of
https://github.com/spf13/viper
synced 2024-11-05 04:37:02 +00:00
2e99a57324
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
32 lines
612 B
Go
32 lines
612 B
Go
//go:build !darwin && !dragonfly && !freebsd && !openbsd && !linux && !netbsd && !solaris && !windows
|
|
// +build !darwin,!dragonfly,!freebsd,!openbsd,!linux,!netbsd,!solaris,!windows
|
|
|
|
package viper
|
|
|
|
import (
|
|
"fmt"
|
|
"runtime"
|
|
|
|
"github.com/fsnotify/fsnotify"
|
|
)
|
|
|
|
func newWatcher() (*watcher, error) {
|
|
return &watcher{}, fmt.Errorf("fsnotify not supported on %s", runtime.GOOS)
|
|
}
|
|
|
|
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
|
|
}
|