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

watcher

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2026 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WatchOptions

type WatchOptions struct {
	Directory string
	Preset    string
	Rules     []string
	Debounce  time.Duration
	DryRun    bool
}

WatchOptions configures watch mode

type Watcher

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

Watcher monitors a folder and sorts incoming files

func New

func New(opts WatchOptions) (*Watcher, error)

New creates a Watcher

func (*Watcher) Start

func (w *Watcher) Start(ctx context.Context, onEvent func(file string, dest string, err error)) error

Start begins watching the target folder

Jump to

Keyboard shortcuts

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