watcher

package
v0.4.28 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2025 License: MIT Imports: 9 Imported by: 3

Documentation

Index

Constants

View Source
const (
	Create = "create"
	Change = "change"
	Remove = "remove"
	Rename = "rename"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Watcher

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

func Start

func Start(paths, fileTypes, ignores []string, callback func(filename string, event string)) (*Watcher, error)

func (*Watcher) Add

func (w *Watcher) Add(path string) error

func (*Watcher) Remove

func (w *Watcher) Remove(path string)

func (*Watcher) SetFileTypes

func (w *Watcher) SetFileTypes(fileTypes []string)

func (*Watcher) Stop

func (w *Watcher) Stop()

func (*Watcher) WatchList

func (w *Watcher) WatchList() []string

Jump to

Keyboard shortcuts

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