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 --- examples/fileserver/main.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'examples/fileserver/main.go') diff --git a/examples/fileserver/main.go b/examples/fileserver/main.go index be427a1..d38a450 100644 --- a/examples/fileserver/main.go +++ b/examples/fileserver/main.go @@ -5,10 +5,10 @@ import ( "log" "os" - "tildegit.org/tjp/gus" - "tildegit.org/tjp/gus/contrib/fs" - "tildegit.org/tjp/gus/gemini" - "tildegit.org/tjp/gus/logging" + sr "tildegit.org/tjp/sliderule" + "tildegit.org/tjp/sliderule/contrib/fs" + "tildegit.org/tjp/sliderule/gemini" + "tildegit.org/tjp/sliderule/logging" ) func main() { @@ -24,7 +24,7 @@ func main() { // build the request handler fileSystem := os.DirFS(".") // Fallthrough tries each handler in succession until it gets something other than "51 Not Found" - handler := gus.FallthroughHandler( + handler := sr.FallthroughHandler( // first see if they're fetching a directory and we have /index.gmi fs.GeminiDirectoryDefault(fileSystem, "index.gmi"), // next (still if they requested a directory) build a directory listing response -- cgit v1.2.3