diff options
author | tjpcc <tjp@ctrl-c.club> | 2023-05-01 07:56:25 -0600 |
---|---|---|
committer | tjpcc <tjp@ctrl-c.club> | 2023-05-01 07:56:25 -0600 |
commit | 9a2da81b11ad0064cca24ce7974827d032309369 (patch) | |
tree | 4313224dc089208423e78bffc3ec50833e35bcea /examples/fileserver | |
parent | 21e2758145d100d74013060f7090d84679cae683 (diff) |
name change gus -> sliderule
Diffstat (limited to 'examples/fileserver')
-rw-r--r-- | examples/fileserver/main.go | 10 |
1 files changed, 5 insertions, 5 deletions
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 <dir>/index.gmi fs.GeminiDirectoryDefault(fileSystem, "index.gmi"), // next (still if they requested a directory) build a directory listing response |