Documentation ¶
Overview ¶
Package watcher is a stupid time-based file modification watcher, I expect to use fsnotify once it becomes consistent among all platforms. You should not use it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { Name string // contains filtered or unexported fields }
Event is the struct that watches a file.
type Watcher ¶
type Watcher struct { Files map[string]*WatcherFile Event chan (*Event) // contains filtered or unexported fields }
Watcher is the struct that handles a the list of file to watch.
func (*Watcher) RemoveWatch ¶
RemoveWatch deletes a file from the watching list.
type WatcherFile ¶
WatcherFile is the struct that handles the last known file properties.
Click to show internal directories.
Click to hide internal directories.