watch

package
v0.0.0-...-c2f6636 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2022 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Watch

func Watch(dir string, logger *log.Logger, handler func(filename string)) (*fsnotify.Watcher, error)

Watch watches for file creation and write events in `dir`. It executes `handler` on each event, and also logs events and errors into the specified logger.

Types

This section is empty.

Jump to

Keyboard shortcuts

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