watcher

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2019 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Watcher

type Watcher struct {
	*fsnotify.Watcher

	Error chan error
	// contains filtered or unexported fields
}

Watcher monitors changes on the filesystem.

func New

func New(path string, exclude matcher, buf buffer) (*Watcher, error)

New returns a Watcher that monitors file changes on path, subdirectories are also monitored for changes as they got created.

func (*Watcher) Loop

func (w *Watcher) Loop()

Loop starts the watcher.

Jump to

Keyboard shortcuts

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