watcher

package
v7.0.0-...-1c7ecba Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WaitForReplacement

func WaitForReplacement(filename string, op fsnotify.Op, watcher *fsnotify.Watcher)

WaitForReplacement waits for a file to exist on disk and then starts a watch for the file

func WatchFileForUpdates

func WatchFileForUpdates(filename string, done <-chan bool, action func()) error

WatchFileForUpdates performs an action every time a file on disk is updated

Types

This section is empty.

Jump to

Keyboard shortcuts

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