fakefsnotify

package
v0.0.0-...-a5a65f0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2017 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package fakefsnotify provides just enough of a mock of github.com/fsnotify/fsnotify in order to build github.com/gopherjs/gopherjs. Obviously the 'gopherjs serve' command (which normally relies on fsnotify) is not expected to work when gopherjs is built with fakefsnotify.

Index

Constants

View Source
const (
	Create = iota
	Write  = iota
	Remove = iota
	Rename = iota
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeEvent

type FakeEvent struct {
	Op   int
	Name string
}

type Watcher

type Watcher struct {
	Events chan FakeEvent
	Errors chan error
}

func NewWatcher

func NewWatcher() (*Watcher, error)

func (*Watcher) Add

func (fw *Watcher) Add(packagePath string)

func (*Watcher) Close

func (fw *Watcher) Close() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL