watcher

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const Recursive = false

Variables

This section is empty.

Functions

func Watch

func Watch(ctx context.Context, dir string) (chan string, error)

Types

type FileModificationWatcher added in v2.0.44

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

func WatchFileModification added in v2.0.44

func WatchFileModification(ctx context.Context, file string) (*FileModificationWatcher, error)

func (*FileModificationWatcher) Context added in v2.0.44

func (*FileModificationWatcher) Stop added in v2.0.44

func (w *FileModificationWatcher) Stop() bool

Jump to

Keyboard shortcuts

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