diff --git a/internal/server.go b/internal/server.go index f729f69..e3e4c22 100644 --- a/internal/server.go +++ b/internal/server.go @@ -6,7 +6,7 @@ import ( "github.com/gorilla/mux" ) -var currServer Server +var currServer *Server type Server struct { httpServer *http.Server @@ -33,7 +33,7 @@ func New() *Server { httpServer: httpServer, router: router} - currServer = *server + currServer = server return server }