filewatch

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: MIT Imports: 6 Imported by: 0

README

filewatch

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OnFileEvent

type OnFileEvent func(event fsnotify.Event)

type Watcher

type Watcher struct {
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context) *Watcher

func (*Watcher) Add

func (w *Watcher) Add(op fsnotify.Op, file string, f OnFileEvent) error

func (*Watcher) Run

func (w *Watcher) Run()

Jump to

Keyboard shortcuts

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