mirror of
https://github.com/golang/go
synced 2024-11-22 00:24:41 -07:00
fix example in inotify
R=golang-dev, adg CC=golang-dev https://golang.org/cl/4174045
This commit is contained in:
parent
37b1787392
commit
047b023119
@ -8,11 +8,11 @@ This package implements a wrapper for the Linux inotify system.
|
|||||||
Example:
|
Example:
|
||||||
watcher, err := inotify.NewWatcher()
|
watcher, err := inotify.NewWatcher()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Exit(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
err = watcher.Watch("/tmp")
|
err = watcher.Watch("/tmp")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Exit(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
|
Loading…
Reference in New Issue
Block a user