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/serve.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'gopher/serve.go') diff --git a/gopher/serve.go b/gopher/serve.go index 572fa55..bad7935 100644 --- a/gopher/serve.go +++ b/gopher/serve.go @@ -8,14 +8,14 @@ import ( "net" "strings" - "tildegit.org/tjp/gus" - "tildegit.org/tjp/gus/internal" - "tildegit.org/tjp/gus/logging" + sr "tildegit.org/tjp/sliderule" + "tildegit.org/tjp/sliderule/internal" + "tildegit.org/tjp/sliderule/logging" ) type gopherServer struct { internal.Server - handler gus.Handler + handler sr.Handler } func (gs gopherServer) Protocol() string { return "GOPHER" } @@ -26,9 +26,9 @@ func NewServer( hostname string, network string, address string, - handler gus.Handler, + handler sr.Handler, errLog logging.Logger, -) (gus.Server, error) { +) (sr.Server, error) { gs := &gopherServer{handler: handler} if strings.IndexByte(hostname, ':') < 0 { @@ -45,7 +45,7 @@ func NewServer( } func (gs *gopherServer) handleConn(conn net.Conn) { - var response *gus.Response + var response *sr.Response request, err := ParseRequest(conn) if err != nil { response = Error(errors.New("Malformed request.")).Response() -- cgit v1.2.3