Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Watch ¶
Watch watches the given filename and calls the given callback when the file is changed. The watcher uses the parent directory as a watchpoint to be notified if the file doesn't exist when the watcher is created. Example:
file.Watch("/tmp/test.txt", func() { fmt.Println("File created or changed") } )
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.