vendor/github.com/spf13/viper/watch_unsupported.go
changeset 265 05c40b36d3b2
parent 256 6d9efbef00a9
child 268 4dd196a4ee7c
equal deleted inserted replaced
264:8f478162d991 265:05c40b36d3b2
       
     1 //go:build appengine || (!darwin && !dragonfly && !freebsd && !openbsd && !linux && !netbsd && !solaris && !windows)
       
     2 // +build appengine !darwin,!dragonfly,!freebsd,!openbsd,!linux,!netbsd,!solaris,!windows
       
     3 
       
     4 package viper
       
     5 
       
     6 import (
       
     7 	"fmt"
       
     8 	"runtime"
       
     9 
       
    10 	"github.com/fsnotify/fsnotify"
       
    11 )
       
    12 
       
    13 func newWatcher() (*watcher, error) {
       
    14 	return &watcher{}, fmt.Errorf("fsnotify not supported on %s", runtime.GOOS)
       
    15 }
       
    16 
       
    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 }