diff --git a/go.mod b/go.mod index 36e710a..3dd0859 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/goproxyio/goproxy +module github.com/goproxyio/goproxy/v2 go 1.12 diff --git a/main.go b/main.go index 40cdd81..0565bc0 100644 --- a/main.go +++ b/main.go @@ -33,7 +33,7 @@ import ( "syscall" "time" - "github.com/goproxyio/goproxy/proxy" + "github.com/goproxyio/goproxy/v2/proxy" "golang.org/x/mod/module" ) diff --git a/proxy/router.go b/proxy/router.go index 4f99906..33a745e 100644 --- a/proxy/router.go +++ b/proxy/router.go @@ -15,7 +15,7 @@ import ( "strings" "time" - "github.com/goproxyio/goproxy/renameio" + "github.com/goproxyio/goproxy/v2/renameio" ) const ListExpire = 5 * time.Minute diff --git a/renameio/renameio.go b/renameio/renameio.go index 5d08f6b..6a02991 100644 --- a/renameio/renameio.go +++ b/renameio/renameio.go @@ -13,7 +13,7 @@ import ( "path/filepath" "strconv" - "github.com/goproxyio/goproxy/robustio" + "github.com/goproxyio/goproxy/v2/robustio" ) const patternSuffix = ".tmp" diff --git a/renameio/renameio_test.go b/renameio/renameio_test.go index 172df35..14f419d 100644 --- a/renameio/renameio_test.go +++ b/renameio/renameio_test.go @@ -20,7 +20,7 @@ import ( "testing" "time" - "github.com/goproxyio/goproxy/robustio" + "github.com/goproxyio/goproxy/v2/robustio" ) func TestConcurrentReadsAndWrites(t *testing.T) {