From 9a2da81b11ad0064cca24ce7974827d032309369 Mon Sep 17 00:00:00 2001 From: tjpcc Date: Mon, 1 May 2023 07:56:25 -0600 Subject: name change gus -> sliderule --- contrib/fs/dir.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'contrib/fs/dir.go') diff --git a/contrib/fs/dir.go b/contrib/fs/dir.go index 5659804..bb2d933 100644 --- a/contrib/fs/dir.go +++ b/contrib/fs/dir.go @@ -8,7 +8,7 @@ import ( "strings" "text/template" - "tildegit.org/tjp/gus" + sr "tildegit.org/tjp/sliderule" ) // ResolveDirectory opens the directory corresponding to a request path. @@ -16,7 +16,7 @@ import ( // The string is the full path to the directory. If the returned ReadDirFile // is not nil, it will be open and must be closed by the caller. func ResolveDirectory( - request *gus.Request, + request *sr.Request, fileSystem fs.FS, ) (string, fs.ReadDirFile, error) { path := strings.Trim(request.Path, "/") @@ -102,7 +102,7 @@ func RenderDirectoryListing( path string, dir fs.ReadDirFile, template *template.Template, - server gus.Server, + server sr.Server, ) (io.Reader, error) { buf := &bytes.Buffer{} @@ -118,7 +118,7 @@ func RenderDirectoryListing( return buf, nil } -func dirlistNamespace(path string, dirFile fs.ReadDirFile, server gus.Server) (map[string]any, error) { +func dirlistNamespace(path string, dirFile fs.ReadDirFile, server sr.Server) (map[string]any, error) { entries, err := dirFile.ReadDir(0) if err != nil { return nil, err -- cgit v1.2.3