aboutsummaryrefslogtreecommitdiff
path: root/page/index.go
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2021-10-24 15:57:32 -0400
committerMitchell Riedstra <mitch@riedstra.dev>2021-10-24 16:01:05 -0400
commit235b8f871fdfa35f9595268d194d28a3de655ec0 (patch)
tree46f562fddffd38ee10d5e3d858dd80c088879689 /page/index.go
parente0d4a3e50921dc07e23ef9aa107bdc78b3adf176 (diff)
downloadgo-website-0.0.16.tar.gz
go-website-0.0.16.tar.xz
Unix sockets for redis. Page use FS interface. Clear redis func.v0.0.16
Additionally, Funcs can be passed in.
Diffstat (limited to 'page/index.go')
-rw-r--r--page/index.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/page/index.go b/page/index.go
index 425bf04..00cab4b 100644
--- a/page/index.go
+++ b/page/index.go
@@ -1,8 +1,7 @@
package page
import (
- "os"
- "path/filepath"
+ "io/fs"
"strings"
"sync"
"time"
@@ -41,8 +40,8 @@ func (p *Page) Index() (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
}