From 228974b0de0f887606bcfd37571a926a909fc0b3 Mon Sep 17 00:00:00 2001 From: Gokhan Sari Date: Sun, 6 Oct 2024 20:47:34 +0300 Subject: [PATCH] Update go version 1.23.2 --- Dockerfile | 2 +- cmd/restapi/main.go | 7 ++++--- go.mod | 4 ++-- pkg/restapi/handler/main.go | 3 ++- pkg/service/domain/main.go | 3 ++- 5 files changed, 11 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index c5ba942..398213a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.23 +FROM golang:1.23.2 WORKDIR /usr/src/is-email-disposable diff --git a/cmd/restapi/main.go b/cmd/restapi/main.go index 9c2ba7b..884b5b8 100644 --- a/cmd/restapi/main.go +++ b/cmd/restapi/main.go @@ -6,9 +6,10 @@ import ( "github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2/middleware/recover" "github.com/rs/zerolog/log" - "github.com/th0th/is-email-disposable/pkg/isemaildisposable" - "github.com/th0th/is-email-disposable/pkg/restapi/handler" - "github.com/th0th/is-email-disposable/pkg/service/domain" + + "github.com/th0th/is-email-disposable/v1/pkg/isemaildisposable" + "github.com/th0th/is-email-disposable/v1/pkg/restapi/handler" + "github.com/th0th/is-email-disposable/v1/pkg/service/domain" ) func main() { diff --git a/go.mod b/go.mod index 212422e..012f7b1 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ -module github.com/th0th/is-email-disposable +module github.com/th0th/is-email-disposable/v1 -go 1.23 +go 1.23.2 require ( github.com/go-errors/errors v1.5.1 diff --git a/pkg/restapi/handler/main.go b/pkg/restapi/handler/main.go index dfad7ba..1166601 100644 --- a/pkg/restapi/handler/main.go +++ b/pkg/restapi/handler/main.go @@ -3,7 +3,8 @@ package handler import ( "github.com/go-errors/errors" "github.com/gofiber/fiber/v2" - "github.com/th0th/is-email-disposable/pkg/isemaildisposable" + + "github.com/th0th/is-email-disposable/v1/pkg/isemaildisposable" ) type indexQueryParams struct { diff --git a/pkg/service/domain/main.go b/pkg/service/domain/main.go index e30a103..fce95c7 100644 --- a/pkg/service/domain/main.go +++ b/pkg/service/domain/main.go @@ -6,7 +6,8 @@ import ( "strings" "github.com/go-errors/errors" - "github.com/th0th/is-email-disposable/pkg/isemaildisposable" + + "github.com/th0th/is-email-disposable/v1/pkg/isemaildisposable" ) type service struct {