package
2.25.0
Repository: https://github.com/luzifer/go_helpers.git
Documentation: pkg.go.dev

# Functions

NewCryptographicWatcher is a wrapper around NewWatcher to configure the Watcher with presence and sha256 hash checks.
NewSimpleWatcher is a wrapper around NewWatcher to configure the Watcher with presence, size and mtime checks.
NewWatcher creates a new Watcher configured with the given filePath, default options, interval and checks given.
NewWatcherWithOpts creates a new Watcher configured with the given filePath, options, interval and checks given.
WatcherCheckHash returns a WatcherCheck configured with the given hash method (i.e.
WatcherCheckMtime checks whether the mtime attribute of the file has changed.
WatcherCheckPresence simply checks whether the file is present and allows to emit WatcherEventFileAppeared / WatcherEventFileVanished events when the file existence state changes.
WatcherCheckSize checks whether the size of the file has changed.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

DefaultWatcherOpts is used when creating the Watcher without giving options.

# Structs

No description provided by the author
No description provided by the author

# Type aliases

FSStack represents layers of fs.FS to open a file from.
No description provided by the author
No description provided by the author