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/file.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'contrib/fs/file.go') diff --git a/contrib/fs/file.go b/contrib/fs/file.go index a1293af..591c1bd 100644 --- a/contrib/fs/file.go +++ b/contrib/fs/file.go @@ -5,7 +5,7 @@ import ( "mime" "strings" - "tildegit.org/tjp/gus" + sr "tildegit.org/tjp/sliderule" ) // ResolveFile finds a file from a filesystem based on a request path. @@ -13,7 +13,7 @@ import ( // It only returns a non-nil file if a file is found - not a directory. // If there is any other sort of filesystem access error, it will be // returned. -func ResolveFile(request *gus.Request, fileSystem fs.FS) (string, fs.File, error) { +func ResolveFile(request *sr.Request, fileSystem fs.FS) (string, fs.File, error) { filepath := strings.TrimPrefix(request.Path, "/") file, err := fileSystem.Open(filepath) if isNotFound(err) { -- cgit v1.2.3