watch

package
v0.0.0-...-2b3db28 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 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