Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ignored ¶
Ignored reports whether a path relative to the root should be skipped.
func PrefixIgnored ¶
PrefixIgnored adapts a path-based predicate so a directory is skipped when the directory itself, with a trailing slash, is ignored.
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
Watcher reports changes beneath a directory.
func Start ¶
Start watches a directory tree, calling changed with each relative, slash-separated path.
An ignored directory is not descended into, so a node_modules with tens of thousands of files costs nothing -- which is also the difference between working and hitting the per-process watch limit on Linux.