Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(w *Watcher)
func WithBreakOnError ¶ added in v0.0.14
func WithRemoveCallback ¶
func WithRemoveCallback(callback RemoveCallback) Option
func WithWriteCallback ¶
func WithWriteCallback(callback WriteCallback) Option
type RemoveCallback ¶
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
Watcher provides a way to recursively watch a set of paths for changes. It recursively adds all directories present (and created in the future) to provide coverage.
You can provide a doublestar mask to filter out paths. For example, to only watch for changes to .txt files, you can provide "**/*.txt".
func NewWatcher ¶
type WriteCallback ¶
Click to show internal directories.
Click to hide internal directories.