Skip to content

Commit 5f0d705

Browse files
authored
Update go gin to newer version (#16593)
* update go gin to newer version * update test
1 parent 70bffff commit 5f0d705

3 files changed

Lines changed: 35 additions & 33 deletions

File tree

modules/openapi-generator/src/main/resources/go-gin-server/go.mod.mustache

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,31 @@ module {{gitHost}}/{{gitUserId}}/{{gitRepoId}}{{#isGoSubmodule}}/{{packageName}}
22

33
go 1.19
44

5-
require github.com/gin-gonic/gin v1.9.0
5+
require github.com/gin-gonic/gin v1.9.1
66

77
require (
8-
github.com/bytedance/sonic v1.8.0 // indirect
8+
github.com/bytedance/sonic v1.9.1 // indirect
99
github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311 // indirect
10+
github.com/gabriel-vasile/mimetype v1.4.2 // indirect
1011
github.com/gin-contrib/sse v0.1.0 // indirect
1112
github.com/go-playground/locales v0.14.1 // indirect
1213
github.com/go-playground/universal-translator v0.18.1 // indirect
13-
github.com/go-playground/validator/v10 v10.11.2 // indirect
14-
github.com/goccy/go-json v0.10.0 // indirect
14+
github.com/go-playground/validator/v10 v10.14.0 // indirect
15+
github.com/goccy/go-json v0.10.2 // indirect
1516
github.com/json-iterator/go v1.1.12 // indirect
16-
github.com/klauspost/cpuid/v2 v2.0.9 // indirect
17-
github.com/leodido/go-urn v1.2.1 // indirect
18-
github.com/mattn/go-isatty v0.0.17 // indirect
19-
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421 // indirect
17+
github.com/klauspost/cpuid/v2 v2.2.4 // indirect
18+
github.com/leodido/go-urn v1.2.4 // indirect
19+
github.com/mattn/go-isatty v0.0.19 // indirect
20+
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
2021
github.com/modern-go/reflect2 v1.0.2 // indirect
21-
github.com/pelletier/go-toml/v2 v2.0.6 // indirect
22+
github.com/pelletier/go-toml/v2 v2.0.8 // indirect
2223
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
23-
github.com/ugorji/go/codec v1.2.9 // indirect
24-
golang.org/x/arch v0.0.0-20210923205945-b76863e36670 // indirect
25-
golang.org/x/crypto v0.5.0 // indirect
26-
golang.org/x/net v0.7.0 // indirect
27-
golang.org/x/sys v0.5.0 // indirect
28-
golang.org/x/text v0.7.0 // indirect
29-
google.golang.org/protobuf v1.28.1 // indirect
24+
github.com/ugorji/go/codec v1.2.11 // indirect
25+
golang.org/x/arch v0.3.0 // indirect
26+
golang.org/x/crypto v0.9.0 // indirect
27+
golang.org/x/net v0.10.0 // indirect
28+
golang.org/x/sys v0.8.0 // indirect
29+
golang.org/x/text v0.9.0 // indirect
30+
google.golang.org/protobuf v1.30.0 // indirect
3031
gopkg.in/yaml.v3 v3.0.1 // indirect
3132
)

modules/openapi-generator/src/test/java/org/openapitools/codegen/goginserver/GoGinServerCodegenTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public void verifyGoMod() throws IOException {
5656
TestUtils.assertFileContains(Paths.get(output + "/go.mod"),
5757
"module github.com/my-user/my-repo");
5858
TestUtils.assertFileContains(Paths.get(output + "/go.mod"),
59-
"require github.com/gin-gonic/gin v1.9.0");
59+
"require github.com/gin-gonic/gin v1.9.1");
6060
}
6161

6262
}

samples/server/petstore/go-gin-api-server/go.mod

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,31 @@ module github.com/GIT_USER_ID/GIT_REPO_ID
22

33
go 1.19
44

5-
require github.com/gin-gonic/gin v1.9.0
5+
require github.com/gin-gonic/gin v1.9.1
66

77
require (
8-
github.com/bytedance/sonic v1.8.0 // indirect
8+
github.com/bytedance/sonic v1.9.1 // indirect
99
github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311 // indirect
10+
github.com/gabriel-vasile/mimetype v1.4.2 // indirect
1011
github.com/gin-contrib/sse v0.1.0 // indirect
1112
github.com/go-playground/locales v0.14.1 // indirect
1213
github.com/go-playground/universal-translator v0.18.1 // indirect
13-
github.com/go-playground/validator/v10 v10.11.2 // indirect
14-
github.com/goccy/go-json v0.10.0 // indirect
14+
github.com/go-playground/validator/v10 v10.14.0 // indirect
15+
github.com/goccy/go-json v0.10.2 // indirect
1516
github.com/json-iterator/go v1.1.12 // indirect
16-
github.com/klauspost/cpuid/v2 v2.0.9 // indirect
17-
github.com/leodido/go-urn v1.2.1 // indirect
18-
github.com/mattn/go-isatty v0.0.17 // indirect
19-
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421 // indirect
17+
github.com/klauspost/cpuid/v2 v2.2.4 // indirect
18+
github.com/leodido/go-urn v1.2.4 // indirect
19+
github.com/mattn/go-isatty v0.0.19 // indirect
20+
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
2021
github.com/modern-go/reflect2 v1.0.2 // indirect
21-
github.com/pelletier/go-toml/v2 v2.0.6 // indirect
22+
github.com/pelletier/go-toml/v2 v2.0.8 // indirect
2223
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
23-
github.com/ugorji/go/codec v1.2.9 // indirect
24-
golang.org/x/arch v0.0.0-20210923205945-b76863e36670 // indirect
25-
golang.org/x/crypto v0.5.0 // indirect
26-
golang.org/x/net v0.7.0 // indirect
27-
golang.org/x/sys v0.5.0 // indirect
28-
golang.org/x/text v0.7.0 // indirect
29-
google.golang.org/protobuf v1.28.1 // indirect
24+
github.com/ugorji/go/codec v1.2.11 // indirect
25+
golang.org/x/arch v0.3.0 // indirect
26+
golang.org/x/crypto v0.9.0 // indirect
27+
golang.org/x/net v0.10.0 // indirect
28+
golang.org/x/sys v0.8.0 // indirect
29+
golang.org/x/text v0.9.0 // indirect
30+
google.golang.org/protobuf v1.30.0 // indirect
3031
gopkg.in/yaml.v3 v3.0.1 // indirect
3132
)

0 commit comments

Comments
 (0)