From 248c28e5c912c88bedc878d308440c9a11af362a Mon Sep 17 00:00:00 2001 From: Mikhail Gerasimchuk Date: Wed, 29 Nov 2023 22:31:49 +0700 Subject: [PATCH] Fix go module name --- cmd/protty/main.go | 4 ++-- go.mod | 2 +- internal/adapter/cli/start.go | 4 ++-- internal/infrastructure/app/protty.go | 6 +++--- internal/infrastructure/app/protty_test.go | 2 +- internal/infrastructure/config/option.go | 2 +- internal/infrastructure/config/start_command_config.go | 2 +- internal/infrastructure/service/reverse_proxy.go | 4 ++-- 8 files changed, 13 insertions(+), 13 deletions(-) diff --git a/cmd/protty/main.go b/cmd/protty/main.go index ddbb28a..40bb218 100644 --- a/cmd/protty/main.go +++ b/cmd/protty/main.go @@ -1,8 +1,8 @@ package main import ( - "protty/internal/infrastructure/app" - "protty/internal/infrastructure/config" + "github.com/mgerasimchuk/protty/internal/infrastructure/app" + "github.com/mgerasimchuk/protty/internal/infrastructure/config" ) func main() { diff --git a/go.mod b/go.mod index a001d69..d84e183 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module protty +module github.com/mgerasimchuk/protty go 1.20 diff --git a/internal/adapter/cli/start.go b/internal/adapter/cli/start.go index 773463d..d76d254 100644 --- a/internal/adapter/cli/start.go +++ b/internal/adapter/cli/start.go @@ -3,10 +3,10 @@ package cli import ( "errors" "fmt" + "github.com/mgerasimchuk/protty/internal/infrastructure/config" + "github.com/mgerasimchuk/protty/internal/infrastructure/service" "github.com/spf13/cobra" "net/http" - "protty/internal/infrastructure/config" - "protty/internal/infrastructure/service" "strings" "text/template" ) diff --git a/internal/infrastructure/app/protty.go b/internal/infrastructure/app/protty.go index 8264469..f024bff 100644 --- a/internal/infrastructure/app/protty.go +++ b/internal/infrastructure/app/protty.go @@ -2,10 +2,10 @@ package app import ( "context" + "github.com/mgerasimchuk/protty/internal/adapter/cli" + "github.com/mgerasimchuk/protty/internal/infrastructure/config" + "github.com/mgerasimchuk/protty/internal/infrastructure/service" "github.com/sirupsen/logrus" - "protty/internal/adapter/cli" - "protty/internal/infrastructure/config" - "protty/internal/infrastructure/service" ) type ProttyApp struct { diff --git a/internal/infrastructure/app/protty_test.go b/internal/infrastructure/app/protty_test.go index 0a17f1f..961fa90 100644 --- a/internal/infrastructure/app/protty_test.go +++ b/internal/infrastructure/app/protty_test.go @@ -7,11 +7,11 @@ import ( "context" "fmt" "github.com/gavv/httpexpect/v2" + "github.com/mgerasimchuk/protty/internal/infrastructure/config" "github.com/stretchr/testify/assert" "io" "net/http" "os" - "protty/internal/infrastructure/config" "testing" "time" ) diff --git a/internal/infrastructure/config/option.go b/internal/infrastructure/config/option.go index 816ef96..fe0799c 100644 --- a/internal/infrastructure/config/option.go +++ b/internal/infrastructure/config/option.go @@ -1,7 +1,7 @@ package config import ( - "protty/pkg/util" + "github.com/mgerasimchuk/protty/pkg/util" "strings" ) diff --git a/internal/infrastructure/config/start_command_config.go b/internal/infrastructure/config/start_command_config.go index 13aa8ea..c272169 100644 --- a/internal/infrastructure/config/start_command_config.go +++ b/internal/infrastructure/config/start_command_config.go @@ -4,11 +4,11 @@ import ( "crypto/md5" "fmt" "github.com/facette/natsort" + "github.com/mgerasimchuk/protty/pkg/util" "github.com/sirupsen/logrus" "net/http" "net/url" "os" - "protty/pkg/util" "reflect" "regexp" "strconv" diff --git a/internal/infrastructure/service/reverse_proxy.go b/internal/infrastructure/service/reverse_proxy.go index f6acefa..3f0ae9c 100644 --- a/internal/infrastructure/service/reverse_proxy.go +++ b/internal/infrastructure/service/reverse_proxy.go @@ -5,6 +5,8 @@ import ( "context" "fmt" "github.com/graze/go-throttled" + "github.com/mgerasimchuk/protty/internal/infrastructure/config" + "github.com/mgerasimchuk/protty/pkg/util" "github.com/sirupsen/logrus" "golang.org/x/time/rate" "io" @@ -12,8 +14,6 @@ import ( "net/http" "net/http/httputil" "net/url" - "protty/internal/infrastructure/config" - "protty/pkg/util" "strconv" "strings" )