Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileWatcher ¶
type FileWatcher interface {
Close() error
}
FileWatcher is an interface we use to watch changes in files
func NewFileWatcher ¶
func NewFileWatcher(file string, onEvent func()) (FileWatcher, error)
NewFileWatcher creates a new FileWatcher
type OSFileWatcher ¶
type OSFileWatcher struct {
// contains filtered or unexported fields
}
OSFileWatcher defines a watch over a file
Click to show internal directories.
Click to hide internal directories.