Documentation
¶
Overview ¶
Package watch reports the files that change below a folder, a burst of changes at a time.
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 reports the changes below a folder.
func New ¶
New watches root and every folder below it for which skip(rel) is false, where rel is the slash-separated path relative to root. It adds folders as they appear, and sends the changed paths of each burst once no change has come for quiet.
func (*Watcher) Changes ¶
Changes gets the changed paths of each burst: absolute, sorted and each once. It is closed when the watcher stops.
Click to show internal directories.
Click to hide internal directories.