diff --git a/backend/localcommand/factory.go b/backend/localcommand/factory.go index 5a1813c..4b43e96 100644 --- a/backend/localcommand/factory.go +++ b/backend/localcommand/factory.go @@ -4,7 +4,7 @@ import ( "syscall" "time" - "github.com/ghthor/gotty/server" + "github.com/ghthor/gotty/v2/server" ) type Options struct { diff --git a/go.mod b/go.mod index 33e4d51..4449686 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/ghthor/gotty +module github.com/ghthor/gotty/v2 go 1.17 diff --git a/main.go b/main.go index 94d64de..39d0d04 100644 --- a/main.go +++ b/main.go @@ -11,10 +11,10 @@ import ( "github.com/urfave/cli" - "github.com/ghthor/gotty/backend/localcommand" - "github.com/ghthor/gotty/pkg/homedir" - "github.com/ghthor/gotty/server" - "github.com/ghthor/gotty/utils" + "github.com/ghthor/gotty/v2/backend/localcommand" + "github.com/ghthor/gotty/v2/pkg/homedir" + "github.com/ghthor/gotty/v2/server" + "github.com/ghthor/gotty/v2/utils" ) func main() { diff --git a/server/handlers.go b/server/handlers.go index 7aa9b57..0a8e6ca 100644 --- a/server/handlers.go +++ b/server/handlers.go @@ -13,7 +13,7 @@ import ( "github.com/gorilla/websocket" "github.com/pkg/errors" - "github.com/ghthor/gotty/webtty" + "github.com/ghthor/gotty/v2/webtty" ) func (server *Server) generateHandleWS(ctx context.Context, cancel context.CancelFunc, counter *counter) http.HandlerFunc { diff --git a/server/server.go b/server/server.go index 7536e32..1de3b38 100644 --- a/server/server.go +++ b/server/server.go @@ -18,9 +18,9 @@ import ( "github.com/gorilla/websocket" "github.com/pkg/errors" - "github.com/ghthor/gotty/pkg/homedir" - "github.com/ghthor/gotty/pkg/randomstring" - "github.com/ghthor/gotty/webtty" + "github.com/ghthor/gotty/v2/pkg/homedir" + "github.com/ghthor/gotty/v2/pkg/randomstring" + "github.com/ghthor/gotty/v2/webtty" ) // Server provides a webtty HTTP endpoint. diff --git a/server/slave.go b/server/slave.go index d4eabde..424c241 100644 --- a/server/slave.go +++ b/server/slave.go @@ -1,7 +1,7 @@ package server import ( - "github.com/ghthor/gotty/webtty" + "github.com/ghthor/gotty/v2/webtty" ) // Slave is webtty.Slave with some additional methods. diff --git a/utils/flags.go b/utils/flags.go index f50b964..36b4cd7 100644 --- a/utils/flags.go +++ b/utils/flags.go @@ -11,7 +11,7 @@ import ( "github.com/fatih/structs" "github.com/yudai/hcl" - "github.com/ghthor/gotty/pkg/homedir" + "github.com/ghthor/gotty/v2/pkg/homedir" ) func GenerateFlags(options ...interface{}) (flags []cli.Flag, mappings map[string]string, err error) {