summaryrefslogtreecommitdiff
path: root/lib/watchfs/dirwatcher_example_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/watchfs/dirwatcher_example_test.go')
-rw-r--r--lib/watchfs/dirwatcher_example_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/watchfs/dirwatcher_example_test.go b/lib/watchfs/dirwatcher_example_test.go
index 850991f4..6f78b947 100644
--- a/lib/watchfs/dirwatcher_example_test.go
+++ b/lib/watchfs/dirwatcher_example_test.go
@@ -10,7 +10,6 @@ import (
"path/filepath"
"time"
- "git.sr.ht/~shulhan/pakakeh.go/lib/memfs"
"git.sr.ht/~shulhan/pakakeh.go/lib/watchfs"
)
@@ -29,7 +28,7 @@ func ExampleDirWatcher() {
// contents, including only files with ".adoc" extension and
// excluding files with ".html" extension.
var dw = &watchfs.DirWatcher{
- Options: memfs.Options{
+ Options: watchfs.DirWatcherOptions{
Root: rootDir,
Includes: []string{
`assets/.*`,
@@ -38,8 +37,8 @@ func ExampleDirWatcher() {
Excludes: []string{
`.*\.html$`,
},
+ Delay: 100 * time.Millisecond,
},
- Delay: 100 * time.Millisecond,
}
err = dw.Start()