mirror of https://github.com/k3d-io/k3d
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
637 B
33 lines
637 B
2 years ago
|
//go:build appengine || (!darwin && !dragonfly && !freebsd && !openbsd && !linux && !netbsd && !solaris && !windows)
|
||
|
// +build appengine !darwin,!dragonfly,!freebsd,!openbsd,!linux,!netbsd,!solaris,!windows
|
||
3 years ago
|
|
||
|
package viper
|
||
|
|
||
|
import (
|
||
2 years ago
|
"fmt"
|
||
|
"runtime"
|
||
3 years ago
|
|
||
|
"github.com/fsnotify/fsnotify"
|
||
|
)
|
||
|
|
||
2 years ago
|
func newWatcher() (*watcher, error) {
|
||
|
return &watcher{}, fmt.Errorf("fsnotify not supported on %s", runtime.GOOS)
|
||
|
}
|
||
|
|
||
3 years ago
|
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
|
||
|
}
|