Skip to content

Commit

Permalink
Merge pull request #113 from KazeNoYumeX/feature/chore-update-depende…
Browse files Browse the repository at this point in the history
…ncies-optimize-imports

Chore: Upgrade the Go version from v1.21 to v1.22
  • Loading branch information
linycken013127 authored Feb 16, 2024
2 parents 6d1c19f + f1f4728 commit e0a140a
Show file tree
Hide file tree
Showing 22 changed files with 186 additions and 164 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-go-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
- .github/workflows/test-go-unit.yml

env:
GO_VERSION: 1.21
GO_VERSION: 1.22

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion Backend/cmd/app/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
_ "github.com/Game-as-a-Service/The-Message/cmd/app/docs"
"github.com/Game-as-a-Service/The-Message/config"
http "github.com/Game-as-a-Service/The-Message/service/delivery/http/v1"
"github.com/Game-as-a-Service/The-Message/service/delivery/http/v1"
mysqlRepo "github.com/Game-as-a-Service/The-Message/service/repository/mysql"
"github.com/Game-as-a-Service/The-Message/service/service"
"github.com/gin-gonic/gin"
Expand Down
3 changes: 2 additions & 1 deletion Backend/cmd/migrate/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ package main

import (
"fmt"
"github.com/Game-as-a-Service/The-Message/config"
"net/url"

"github.com/Game-as-a-Service/The-Message/config"
)

func main() {
Expand Down
3 changes: 2 additions & 1 deletion Backend/cmd/migrate/rollback.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ package main

import (
"fmt"
"github.com/Game-as-a-Service/The-Message/config"
"net/url"

"github.com/Game-as-a-Service/The-Message/config"
)

func main() {
Expand Down
2 changes: 0 additions & 2 deletions Backend/config/config.go
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
package config


5 changes: 3 additions & 2 deletions Backend/config/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ package config

import (
"fmt"
"gorm.io/driver/mysql"
"gorm.io/gorm"
"log"
"net/url"
"os"

"gorm.io/driver/mysql"
"gorm.io/gorm"
)

func NewDatabase() *gorm.DB {
Expand Down
7 changes: 4 additions & 3 deletions Backend/config/migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ package config
import (
"database/sql"
"fmt"
"net/url"
"os"
"strings"

_ "github.com/go-sql-driver/mysql"
"github.com/golang-migrate/migrate/v4"
"github.com/golang-migrate/migrate/v4/database/mysql"
_ "github.com/golang-migrate/migrate/v4/source/file"
_ "github.com/joho/godotenv/autoload"
"net/url"
"os"
"strings"
)

func NewMigration(dsn string, sourceURL string) (*migrate.Migrate, error) {
Expand Down
5 changes: 3 additions & 2 deletions Backend/config/test_database.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package config

import (
"fmt"
"github.com/joho/godotenv"
"gorm.io/gorm"
"log"
"os"

"github.com/joho/godotenv"
"gorm.io/gorm"
)

func InitTestDB() *gorm.DB {
Expand Down
66 changes: 32 additions & 34 deletions Backend/go.mod
Original file line number Diff line number Diff line change
@@ -1,63 +1,61 @@
module github.com/Game-as-a-Service/The-Message

go 1.21
go 1.22

require (
github.com/bxcodec/faker/v3 v3.8.1
github.com/gin-gonic/gin v1.9.1
github.com/golang-migrate/migrate/v4 v4.16.2
github.com/go-faker/faker/v4 v4.3.0
github.com/go-sql-driver/mysql v1.7.1
github.com/golang-migrate/migrate/v4 v4.17.0
github.com/joho/godotenv v1.5.1
github.com/stretchr/testify v1.8.3
github.com/stretchr/testify v1.8.4
github.com/swaggo/files v1.0.1
github.com/swaggo/gin-swagger v1.6.0
github.com/swaggo/swag v1.16.2
gorm.io/driver/mysql v1.5.1
gorm.io/gorm v1.25.4
github.com/swaggo/swag v1.16.3
gorm.io/driver/mysql v1.5.4
gorm.io/gorm v1.25.7
)

require (
github.com/KyleBanks/depth v1.2.1 // indirect
github.com/PuerkitoBio/purell v1.1.1 // indirect
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
github.com/bytedance/sonic v1.9.1 // indirect
github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311 // indirect
github.com/bytedance/sonic v1.10.2 // indirect
github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect
github.com/chenzhuoyu/iasm v0.9.1 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/gabriel-vasile/mimetype v1.4.2 // indirect
github.com/gabriel-vasile/mimetype v1.4.3 // indirect
github.com/gin-contrib/sse v0.1.0 // indirect
github.com/go-openapi/jsonpointer v0.19.5 // indirect
github.com/go-openapi/jsonreference v0.19.6 // indirect
github.com/go-openapi/spec v0.20.4 // indirect
github.com/go-openapi/swag v0.19.15 // indirect
github.com/go-openapi/jsonpointer v0.20.2 // indirect
github.com/go-openapi/jsonreference v0.20.4 // indirect
github.com/go-openapi/spec v0.20.14 // indirect
github.com/go-openapi/swag v0.22.9 // indirect
github.com/go-playground/locales v0.14.1 // indirect
github.com/go-playground/universal-translator v0.18.1 // indirect
github.com/go-playground/validator/v10 v10.14.0 // indirect
github.com/go-sql-driver/mysql v1.7.1 // indirect
github.com/go-playground/validator/v10 v10.18.0 // indirect
github.com/goccy/go-json v0.10.2 // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/jinzhu/now v1.1.5 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/klauspost/cpuid/v2 v2.2.4 // indirect
github.com/leodido/go-urn v1.2.4 // indirect
github.com/mailru/easyjson v0.7.6 // indirect
github.com/mattes/migrate v3.0.1+incompatible // indirect
github.com/mattn/go-isatty v0.0.19 // indirect
github.com/klauspost/cpuid/v2 v2.2.6 // indirect
github.com/leodido/go-urn v1.4.0 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/pelletier/go-toml/v2 v2.0.8 // indirect
github.com/pelletier/go-toml/v2 v2.1.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
github.com/ugorji/go/codec v1.2.11 // indirect
go.uber.org/atomic v1.7.0 // indirect
golang.org/x/arch v0.3.0 // indirect
golang.org/x/crypto v0.14.0 // indirect
golang.org/x/net v0.17.0 // indirect
golang.org/x/sys v0.13.0 // indirect
golang.org/x/text v0.13.0 // indirect
golang.org/x/tools v0.9.1 // indirect
google.golang.org/protobuf v1.30.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
github.com/ugorji/go/codec v1.2.12 // indirect
go.uber.org/atomic v1.11.0 // indirect
golang.org/x/arch v0.7.0 // indirect
golang.org/x/crypto v0.19.0 // indirect
golang.org/x/net v0.21.0 // indirect
golang.org/x/sys v0.17.0 // indirect
golang.org/x/text v0.14.0 // indirect
golang.org/x/tools v0.18.0 // indirect
google.golang.org/protobuf v1.32.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading

0 comments on commit e0a140a

Please sign in to comment.