Help us shape the future of Go! Take the 2026 Go Developer Survey

watcher

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: GPL-3.0 Imports: 6 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 {
	// contains filtered or unexported fields
}

Watcher monitors a directory tree for changes to supported source files, emitting debounced batches of changed paths.

func New

func New(root string) (*Watcher, error)

New creates a Watcher that recursively watches directories under root, skipping hidden dirs and .treelines.

func (*Watcher) Close

func (w *Watcher) Close() error

Close stops the watcher and releases resources.

func (*Watcher) Events

func (w *Watcher) Events() <-chan []string

Events returns a channel that emits deduplicated batches of changed file paths.

Jump to

Keyboard shortcuts

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