vendor/github.com/spf13/viper/watch_unsupported.go
author Mikael Berthe <mikael@lilotux.net>
Sat, 04 Feb 2023 13:17:17 +0100
changeset 268 4dd196a4ee7c
parent 256 vendor/github.com/spf13/viper/watch_wasm.go@6d9efbef00a9
parent 265 vendor/github.com/spf13/viper/watch_wasm.go@05c40b36d3b2
permissions -rw-r--r--
Merge pull request #29 from rjp/fix/support-non-int-ids Update to handle non-int64 IDs committer: GitHub <noreply@github.com>

//go:build appengine || (!darwin && !dragonfly && !freebsd && !openbsd && !linux && !netbsd && !solaris && !windows)
// +build appengine !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
}