watch

package
v1.0.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: Apache-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 FileWatcher

type FileWatcher interface {
	Close() error
}

FileWatcher is an interface we use to watch changes in files

func NewFileWatcher

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

NewFileWatcher creates a new FileWatcher

type OSFileWatcher

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

OSFileWatcher defines a watch over a file

func (OSFileWatcher) Close

func (f OSFileWatcher) Close() error

Close ends the watch

Jump to

Keyboard shortcuts

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