Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Watcher ¶
type Watcher struct { Pattern string Changed chan bool Debounce time.Duration // contains filtered or unexported fields }
Watcher is used to watch all existing os directories for changes. If changes are detected that match the Pattern, one "true" is sent to Changed after Debounce. Whatcher blocks, if no go routine is listening to Changed. The channel is closed when Close() is called so you can range over Changed.
Click to show internal directories.
Click to hide internal directories.