author | Mikael Berthe <mikael@lilotux.net> |
Sat, 04 Feb 2023 12:58:35 +0100 | |
changeset 265 | 05c40b36d3b2 |
parent 256 | vendor/github.com/spf13/viper/watch_wasm.go@6d9efbef00a9 |
child 268 | 4dd196a4ee7c |
permissions | -rw-r--r-- |
265
05c40b36d3b2
Bump to version 3.0.0-dev, using madon v3
Mikael Berthe <mikael@lilotux.net>
parents:
256
diff
changeset
|
1 |
//go:build appengine || (!darwin && !dragonfly && !freebsd && !openbsd && !linux && !netbsd && !solaris && !windows) |
05c40b36d3b2
Bump to version 3.0.0-dev, using madon v3
Mikael Berthe <mikael@lilotux.net>
parents:
256
diff
changeset
|
2 |
// +build appengine !darwin,!dragonfly,!freebsd,!openbsd,!linux,!netbsd,!solaris,!windows |
256 | 3 |
|
4 |
package viper |
|
5 |
||
6 |
import ( |
|
265
05c40b36d3b2
Bump to version 3.0.0-dev, using madon v3
Mikael Berthe <mikael@lilotux.net>
parents:
256
diff
changeset
|
7 |
"fmt" |
05c40b36d3b2
Bump to version 3.0.0-dev, using madon v3
Mikael Berthe <mikael@lilotux.net>
parents:
256
diff
changeset
|
8 |
"runtime" |
256 | 9 |
|
10 |
"github.com/fsnotify/fsnotify" |
|
11 |
) |
|
12 |
||
265
05c40b36d3b2
Bump to version 3.0.0-dev, using madon v3
Mikael Berthe <mikael@lilotux.net>
parents:
256
diff
changeset
|
13 |
func newWatcher() (*watcher, error) { |
05c40b36d3b2
Bump to version 3.0.0-dev, using madon v3
Mikael Berthe <mikael@lilotux.net>
parents:
256
diff
changeset
|
14 |
return &watcher{}, fmt.Errorf("fsnotify not supported on %s", runtime.GOOS) |
05c40b36d3b2
Bump to version 3.0.0-dev, using madon v3
Mikael Berthe <mikael@lilotux.net>
parents:
256
diff
changeset
|
15 |
} |
05c40b36d3b2
Bump to version 3.0.0-dev, using madon v3
Mikael Berthe <mikael@lilotux.net>
parents:
256
diff
changeset
|
16 |
|
256 | 17 |
type watcher struct { |
18 |
Events chan fsnotify.Event |
|
19 |
Errors chan error |
|
20 |
} |
|
21 |
||
22 |
func (*watcher) Close() error { |
|
23 |
return nil |
|
24 |
} |
|
25 |
||
26 |
func (*watcher) Add(name string) error { |
|
27 |
return nil |
|
28 |
} |
|
29 |
||
30 |
func (*watcher) Remove(name string) error { |
|
31 |
return nil |
|
32 |
} |