Bump module major version to v2

This commit is contained in:
Will Owens 2022-02-26 18:32:53 -05:00
parent 0e16740b7d
commit ab9ea2b95f
7 changed files with 12 additions and 12 deletions

View file

@ -4,7 +4,7 @@ import (
"syscall"
"time"
"github.com/ghthor/gotty/server"
"github.com/ghthor/gotty/v2/server"
)
type Options struct {

2
go.mod
View file

@ -1,4 +1,4 @@
module github.com/ghthor/gotty
module github.com/ghthor/gotty/v2
go 1.17

View file

@ -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() {

View file

@ -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 {

View file

@ -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.

View file

@ -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.

View file

@ -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) {