file

package
v0.0.0-...-e9f0680 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2022 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttachWatcher

func AttachWatcher(w *watcher.Watcher, fn func(event watcher.Event))

AttachWatcher start the watcher, if any error was produced while the starting process the application would crash you need to pass a function, this function is the function that will be executed when the watcher receive any event the type of defined on the InitializeWatcher function

func InitializeWatcher

func InitializeWatcher(pathToWatch ...string) (*watcher.Watcher, error)

InitializeWatcher initialize a watcher to check for modification on all files in the given path to watch

Types

This section is empty.

Jump to

Keyboard shortcuts

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