watcher

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Watcher

type Watcher struct {
	*fsnotify.Watcher
}

func NewWatcher

func NewWatcher(rootPath string) (*Watcher, error)

NewWatcher creates a new file watcher.

Remember to close it!

func (*Watcher) Watch

func (w *Watcher) Watch(folder chan string, errChan chan error)

Jump to

Keyboard shortcuts

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