diff options
Diffstat (limited to 'page/checkup.go')
| -rw-r--r-- | page/checkup.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/page/checkup.go b/page/checkup.go index 9f721b7..6c3664f 100644 --- a/page/checkup.go +++ b/page/checkup.go @@ -2,8 +2,7 @@ package page import ( "fmt" - "os" - "path/filepath" + "io/fs" "reflect" "strings" ) @@ -15,8 +14,8 @@ func (p *Page) Checkup() (map[string]PageList, error) { out := make(map[string]PageList) - _ = filepath.Walk(filepath.Dir("."), - func(path string, info os.FileInfo, err error) error { + _ = fs.WalkDir(FileSystem, ".", + func(path string, info fs.DirEntry, err error) error { if err != nil { return err } |
