From 412727bf9c6728260be0c9ceafda9cfaabc7c5c0 Mon Sep 17 00:00:00 2001 From: Victor Lacasse-Beaudoin Date: Fri, 2 Jun 2023 16:08:08 -0400 Subject: [PATCH] Fix local imports --- cmd/api.go | 4 ++-- cmd/web.go | 6 +++--- data/apiclient.go | 2 +- data/data.go | 2 +- go.mod | 2 +- handlers/health.go | 2 +- handlers/insert.go | 4 ++-- handlers/read.go | 2 +- handlers/seed.go | 2 +- handlers/update.go | 2 +- main.go | 2 +- web/webhandlers/handlers.go | 2 +- 12 files changed, 16 insertions(+), 16 deletions(-) diff --git a/cmd/api.go b/cmd/api.go index 5c2ce60..f1988b6 100644 --- a/cmd/api.go +++ b/cmd/api.go @@ -5,8 +5,8 @@ import ( "fmt" "log" - "git.agecem.com/agecem/bottin/v4/data" - "git.agecem.com/agecem/bottin/v4/handlers" + "git.agecem.com/agecem/bottin/data" + "git.agecem.com/agecem/bottin/handlers" "github.com/labstack/echo/v4" "github.com/labstack/echo/v4/middleware" "github.com/spf13/cobra" diff --git a/cmd/web.go b/cmd/web.go index 08f6375..adf7de3 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -8,9 +8,9 @@ import ( "io" "log" - "git.agecem.com/agecem/bottin/v4/data" - "git.agecem.com/agecem/bottin/v4/web" - "git.agecem.com/agecem/bottin/v4/web/webhandlers" + "git.agecem.com/agecem/bottin/data" + "git.agecem.com/agecem/bottin/web" + "git.agecem.com/agecem/bottin/web/webhandlers" "github.com/labstack/echo/v4" "github.com/labstack/echo/v4/middleware" "github.com/spf13/cobra" diff --git a/data/apiclient.go b/data/apiclient.go index 9fc1d5a..7143204 100644 --- a/data/apiclient.go +++ b/data/apiclient.go @@ -8,7 +8,7 @@ import ( "io/ioutil" "net/http" - "git.agecem.com/agecem/bottin/v4/models" + "git.agecem.com/agecem/bottin/models" "github.com/spf13/viper" ) diff --git a/data/data.go b/data/data.go index 9601792..5494cb1 100644 --- a/data/data.go +++ b/data/data.go @@ -4,7 +4,7 @@ import ( "errors" "fmt" - "git.agecem.com/agecem/bottin/v4/models" + "git.agecem.com/agecem/bottin/models" _ "github.com/jackc/pgx/stdlib" "github.com/jmoiron/sqlx" "github.com/spf13/viper" diff --git a/go.mod b/go.mod index b6a59fc..5963afa 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module git.agecem.com/agecem/bottin/v4 +module git.agecem.com/agecem/bottin go 1.20 diff --git a/handlers/health.go b/handlers/health.go index 49d45b0..99cc498 100644 --- a/handlers/health.go +++ b/handlers/health.go @@ -4,7 +4,7 @@ import ( "fmt" "net/http" - "git.agecem.com/agecem/bottin/v4/data" + "git.agecem.com/agecem/bottin/data" "github.com/labstack/echo/v4" ) diff --git a/handlers/insert.go b/handlers/insert.go index 629d6e7..38cad02 100644 --- a/handlers/insert.go +++ b/handlers/insert.go @@ -3,8 +3,8 @@ package handlers import ( "net/http" - "git.agecem.com/agecem/bottin/v4/data" - "git.agecem.com/agecem/bottin/v4/models" + "git.agecem.com/agecem/bottin/data" + "git.agecem.com/agecem/bottin/models" "github.com/labstack/echo/v4" "github.com/spf13/viper" ) diff --git a/handlers/read.go b/handlers/read.go index 8136e21..3932ec3 100644 --- a/handlers/read.go +++ b/handlers/read.go @@ -3,7 +3,7 @@ package handlers import ( "net/http" - "git.agecem.com/agecem/bottin/v4/data" + "git.agecem.com/agecem/bottin/data" "github.com/labstack/echo/v4" "github.com/spf13/viper" ) diff --git a/handlers/seed.go b/handlers/seed.go index 91d5037..237de09 100644 --- a/handlers/seed.go +++ b/handlers/seed.go @@ -3,7 +3,7 @@ package handlers import ( "net/http" - "git.agecem.com/agecem/bottin/v4/data" + "git.agecem.com/agecem/bottin/data" "github.com/labstack/echo/v4" "github.com/spf13/viper" ) diff --git a/handlers/update.go b/handlers/update.go index 8a8cf0a..6422f61 100644 --- a/handlers/update.go +++ b/handlers/update.go @@ -3,7 +3,7 @@ package handlers import ( "net/http" - "git.agecem.com/agecem/bottin/v4/data" + "git.agecem.com/agecem/bottin/data" "github.com/labstack/echo/v4" "github.com/spf13/viper" ) diff --git a/main.go b/main.go index 6ceb837..c6efc0b 100644 --- a/main.go +++ b/main.go @@ -1,6 +1,6 @@ package main -import "git.agecem.com/agecem/bottin/v4/cmd" +import "git.agecem.com/agecem/bottin/cmd" func main() { cmd.Execute() diff --git a/web/webhandlers/handlers.go b/web/webhandlers/handlers.go index 732d3e7..abfa955 100644 --- a/web/webhandlers/handlers.go +++ b/web/webhandlers/handlers.go @@ -4,7 +4,7 @@ import ( "fmt" "net/http" - "git.agecem.com/agecem/bottin/v4/data" + "git.agecem.com/agecem/bottin/data" "github.com/labstack/echo/v4" )