watch

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: May 1, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileWatcher

type FileWatcher struct {
	// contains filtered or unexported fields
}

FileWatcher defines a watch over a file

func NewFileWatcher

func NewFileWatcher(file string, onEvent func()) (FileWatcher, error)

NewFileWatcher creates a new FileWatcher

func (*FileWatcher) Close

func (f *FileWatcher) Close() error

Close ends the watch

Jump to

Keyboard shortcuts

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