introduce go modules and make minimal changes to make gotty compile

This commit is contained in:
Bohdan Trotsenko 2022-07-23 11:25:00 +03:00
parent ca725a9fdc
commit 1710712286
12 changed files with 95 additions and 75 deletions

View file

@ -13,7 +13,7 @@ import (
"github.com/gorilla/websocket"
"github.com/pkg/errors"
"github.com/yudai/gotty/webtty"
"gotty/webtty"
)
func (server *Server) generateHandleWS(ctx context.Context, cancel context.CancelFunc, counter *counter) http.HandlerFunc {

View file

@ -14,13 +14,13 @@ import (
"time"
"github.com/NYTimes/gziphandler"
"github.com/elazarl/go-bindata-assetfs"
assetfs "github.com/elazarl/go-bindata-assetfs"
"github.com/gorilla/websocket"
"github.com/pkg/errors"
"github.com/yudai/gotty/pkg/homedir"
"github.com/yudai/gotty/pkg/randomstring"
"github.com/yudai/gotty/webtty"
"gotty/pkg/homedir"
"gotty/pkg/randomstring"
"gotty/webtty"
)
// Server provides a webtty HTTP endpoint.

View file

@ -1,7 +1,7 @@
package server
import (
"github.com/yudai/gotty/webtty"
"gotty/webtty"
)
// Slave is webtty.Slave with some additional methods.