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 --- gopher/request.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gopher/request.go') diff --git a/gopher/request.go b/gopher/request.go index ef68438..4125af3 100644 --- a/gopher/request.go +++ b/gopher/request.go @@ -8,11 +8,11 @@ import ( "path" "strings" - "tildegit.org/tjp/gus" + sr "tildegit.org/tjp/sliderule" ) -// ParseRequest parses a gopher protocol request into a gus.Request object. -func ParseRequest(rdr io.Reader) (*gus.Request, error) { +// ParseRequest parses a gopher protocol request into a sliderule.Request object. +func ParseRequest(rdr io.Reader) (*sr.Request, error) { selector, search, err := readFullRequest(rdr) if err != nil { return nil, err @@ -22,7 +22,7 @@ func ParseRequest(rdr io.Reader) (*gus.Request, error) { selector = "/" + selector } - return &gus.Request{ + return &sr.Request{ URL: &url.URL{ Scheme: "gopher", Path: path.Clean(strings.TrimSuffix(selector, "\r\n")), -- cgit v1.2.3