gtsocial-umbx

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

watch_unsupported.go (637B)


      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 }