Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from gin-gonic:master #39

Open
wants to merge 346 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
346 commits
Select commit Hold shift + click to select a range
417b142
feat: add StaticFileFS (#2749)
thinkgos Mar 18, 2022
fcd36c5
fix: test error (#3087)
thinkerou Mar 18, 2022
f073e33
fix: typo (#3086)
a2tt Mar 18, 2022
d8dfaae
Bump golangci/golangci-lint-action from 2 to 3.1.0 (#3063)
dependabot[bot] Mar 19, 2022
1e24473
Annotation fix (#3088)
icy4ever Mar 20, 2022
9701b65
Bump github.com/ugorji/go/codec from 1.2.6 to 1.2.7 (#3064)
dependabot[bot] Mar 20, 2022
2bde107
test support go1.18 (#2990)
thinkerou Mar 21, 2022
62265c8
chore: support min version of go: 1.14 (#2964)
thinkerou Mar 21, 2022
be0d86e
chore(CI/CD): add go1.18 version (#3092)
appleboy Mar 21, 2022
865fd56
Update some comments, add function name prefix to comment (#3090)
mstmdev Mar 23, 2022
205bb81
chore(deps): bump actions/cache from 2 to 3 (#3093)
dependabot[bot] Mar 25, 2022
3d55efe
chore(deps): bump google.golang.org/protobuf from 1.27.1 to 1.28.0 (#…
dependabot[bot] Mar 29, 2022
6a1d279
chore(deps): bump github.com/goccy/go-json from 0.9.5 to 0.9.6 (#3105)
dependabot[bot] Mar 29, 2022
c458094
chore(deps): bump github.com/stretchr/testify from 1.7.0 to 1.7.1 (#3…
dependabot[bot] Mar 29, 2022
888b14a
docs: Update README.md (#3108)
dijonkitchen Apr 16, 2022
6854212
Fix: missing `sameSite` when do context.reset() (#3123)
ahuigo Apr 17, 2022
493b124
chore(deps): bump actions/setup-go from 2 to 3 (#3118)
dependabot[bot] Apr 17, 2022
696d37e
chore(deps): bump codecov/codecov-action from 2 to 3 (#3117)
dependabot[bot] Apr 17, 2022
444e156
Fix some tests (#3100)
mstmdev Apr 21, 2022
c706ace
fix: removed YODA conditions, removed blank identifier from `invalid_…
kbakdev Apr 23, 2022
d8e053d
use StringToBytes func (#2798)
lancoLiu Apr 23, 2022
e61cc06
feat(context): return GIN Context from Value method (#2825)
ifaisalalam Apr 23, 2022
c131704
chore(deps): bump github.com/goccy/go-json from 0.9.6 to 0.9.7 (#3131)
dependabot[bot] Apr 26, 2022
90e7073
chore(deps): bump github/codeql-action from 1 to 2 (#3132)
dependabot[bot] Apr 26, 2022
ef687e0
feat: automatically SetMode to TestMode when run go test. (#3139)
micanzhang May 14, 2022
f1e9428
chore(deps): bump golangci/golangci-lint-action from 3.1.0 to 3.2.0 (…
dependabot[bot] May 18, 2022
87811a9
fix: the trusted proxies should support ipv6 address by default (#3033)
LeeEirc May 28, 2022
aa60021
Fix intercepting headers in middlewares (#1271)
tjamet May 28, 2022
ed03102
[GIN-001] - Add TOML bining for gin (#3081)
Valentine-Mario May 28, 2022
4b68a5f
chore: update go.mod and remove space from copyright (#3158)
thinkerou May 28, 2022
60e24d5
chore(CI/CD): add go version release flow (#3159)
appleboy May 28, 2022
38eb5ac
add v1.8.0 changelog (#3160)
thinkerou May 30, 2022
5fa3452
chore(deps): bump goreleaser/goreleaser-action from 2 to 3 (#3163)
dependabot[bot] May 30, 2022
58303bd
docs(changelog): add break changes section (#3170)
appleboy Jun 2, 2022
92ba8e1
fix: typo (#3171)
0x2d3c Jun 2, 2022
f197a8b
feat(context): add ContextWithFallback feature flag (#3166) (#3172)
wei840222 Jun 6, 2022
ed049dd
docs: release v1.8.1 version (#3176)
appleboy Jun 6, 2022
f2182de
chore(deps): bump github.com/stretchr/testify from 1.7.1 to 1.7.2 (#3…
dependabot[bot] Jun 6, 2022
6c3a1d7
Small doc fix on Context's ClientIP() method. (#3180)
jordan0day Jun 9, 2022
05caa5c
chore(deps): bump github.com/pelletier/go-toml/v2 from 2.0.1 to 2.0.2…
dependabot[bot] Jun 14, 2022
815122a
Fix a syntax error in a code comment (#3201)
L2ncE Jun 15, 2022
12b55b4
chore(deps): bump github.com/stretchr/testify from 1.7.2 to 1.7.4 (#3…
dependabot[bot] Jun 24, 2022
6de2245
switch min version of go to 1.15 (#3211)
thinkerou Jun 26, 2022
92dd245
chore(deps): bump github.com/stretchr/testify from 1.7.4 to 1.7.5 (#3…
dependabot[bot] Jun 28, 2022
088cdd7
Fix the value of ginSupportMinGoVer constant by semantic (#3221)
mstmdev Jul 1, 2022
680be7d
Add some tests for YAML and TOML formats (#3223)
mstmdev Jul 1, 2022
e837e1c
chore(deps): bump github.com/stretchr/testify from 1.7.5 to 1.8.0 (#3…
dependabot[bot] Jul 5, 2022
b57163a
chore(deps): bump github.com/goccy/go-json from 0.9.7 to 0.9.8 (#3228)
dependabot[bot] Jul 5, 2022
c35bde9
chore(deps): bump github.com/goccy/go-json from 0.9.8 to 0.9.10 (#3251)
dependabot[bot] Jul 31, 2022
79dd72d
docs: update markdown format (#3260)
appleboy Aug 1, 2022
8374ed2
feat: add sonic json support (#3184)
Rainshaw Aug 2, 2022
ad66d9d
chore(deps): bump google.golang.org/protobuf from 1.28.0 to 1.28.1 (#…
dependabot[bot] Aug 2, 2022
1b5ba25
chore(deps): bump github.com/bytedance/sonic from 1.3.2 to 1.3.4 (#3273)
dependabot[bot] Aug 15, 2022
b04917c
chore: upgrade golangci-lint and fix golangci-lint error (#3278)
thinkerou Aug 15, 2022
de17fb1
Format with Go 1.19 formatter (#3277)
Aoang Aug 16, 2022
1c48977
chore(deps): bump github.com/mattn/go-isatty from 0.0.14 to 0.0.16 (#…
dependabot[bot] Aug 16, 2022
fb13e82
Update gin.yml (#3304)
sashashura Aug 31, 2022
2ae6157
Fix typos in RouterGroup method docs (#3302)
autarch Aug 31, 2022
de1f142
chore(deps): bump github.com/goccy/go-json from 0.9.10 to 0.9.11 (#3292)
dependabot[bot] Sep 1, 2022
0128d74
chore(deps): bump github.com/bytedance/sonic from 1.3.4 to 1.4.0 (#3293)
dependabot[bot] Sep 1, 2022
2c9e5fe
rename variable because collide with the imported package name (#3298)
Kamandlou Sep 1, 2022
814cd18
FIX TYPO: Gin by default useR -> ... useS (#3324)
runebone Sep 18, 2022
78dad9d
chore(deps): bump github.com/go-playground/validator/v10 (#3330)
dependabot[bot] Sep 20, 2022
6fab4c3
chore(deps): bump actions/setup-go from 2 to 3 (#3340)
dependabot[bot] Oct 11, 2022
6296175
Fix the GO-2022-0969 and GO-2022-0288 vulnerabilities (#3333)
mstmdev Oct 12, 2022
fa58bff
chore(dep): Changes minimum support go version to go1.16 (#3361)
mstmdev Oct 16, 2022
4c64f1c
chore(go): Add support go 1.19 (#3272)
mstmdev Oct 16, 2022
24a1d2a
fix(typo): spelling `covert` -> `convert` (#3325)
jbampton Oct 16, 2022
45c758e
chore(file): Creates a directory named path (#3316)
mskKandula Oct 16, 2022
33ab0fc
refactor(struct): Remove redundant type conversions (#3345)
hopehook Oct 16, 2022
51aea73
fix: modify interface check way (#3327)
demoManito Oct 19, 2022
8b9c55e
fix(route): redirectSlash bug (#3227)
thinkerou Nov 6, 2022
971fe21
docs(comment): Modify comment syntax error (#3389)
wanghaha-dev Nov 6, 2022
55e27f1
fix(engine): missing route params for CreateTestContext (#2778) (#2803)
RoCry Nov 6, 2022
3a6865a
docs(readme): The krakend is rename to lura (#3377)
mstmdev Nov 6, 2022
8edb7a7
docs(readme): Update some go website links (#3376)
mstmdev Nov 6, 2022
aefae30
fix: test fmt.Println replace t.Error (#3328)
demoManito Nov 6, 2022
c4b3c2c
chore(deps): bump github.com/stretchr/testify from 1.8.0 to 1.8.1 (#3…
dependabot[bot] Nov 8, 2022
b682b8a
chore(deps): bump golangci/golangci-lint-action from 3.2.0 to 3.3.0 (…
dependabot[bot] Nov 8, 2022
212267d
fix: fix typo in comment (#3371)
lgbgbl Nov 8, 2022
a0acf1d
docs(readme): Using the embed package as a recommended example that b…
mstmdev Nov 9, 2022
234a1d3
docs(readme): Modify sample code bugs (#3394)
go-bai Nov 17, 2022
6150c48
remove deprecated of package io/ioutil (#3395)
0x2d3c Nov 17, 2022
c629689
docs(readme): Add the TOML rendering example (#3400)
mstmdev Nov 17, 2022
8fe209a
chore(deps): bump golangci/golangci-lint-action from 3.3.0 to 3.3.1 (…
dependabot[bot] Nov 17, 2022
80cd679
chore(deps): bump github.com/pelletier/go-toml/v2 from 2.0.2 to 2.0.6…
dependabot[bot] Nov 23, 2022
cc367f9
docs(context): #3369 modify the annotation about Context.Param() (#3414)
Cookiery Dec 1, 2022
483ac2a
chore(deps): bump goreleaser/goreleaser-action from 3 to 4 (#3441)
dependabot[bot] Dec 21, 2022
f551d7d
chore(deps): bump github.com/bytedance/sonic from 1.4.0 to 1.6.0 (#3442)
dependabot[bot] Dec 21, 2022
d4caeee
Fix the GO-2022-1144 vulnerability (#3432)
mstmdev Dec 21, 2022
2285aa5
docs(readme): release v1.8.2 version (#3420)
appleboy Dec 21, 2022
297b664
refactor: avoid calling strings.ToLower twice (#3433)
lgbgbl Dec 22, 2022
e868fd1
test(TOML): Add some tests for the TOML render (#3401)
mstmdev Dec 22, 2022
8659ab5
chore(deps): bump github.com/goccy/go-json from 0.9.11 to 0.10.0 (#3424)
dependabot[bot] Dec 25, 2022
82e1c53
docs(readme): move more example to docs/doc.md (#3449)
thinkerou Jan 2, 2023
41f2669
console logger HTTP status bug fixed and the corresponding unit test …
alirezaeftekhari Jan 2, 2023
7d8fc15
update context.go Get/Set method use defer (#3429)
youngxhui Jan 2, 2023
c9b2724
chore(yaml): upgrade dependency to v3 version (#3456)
thinkerou Jan 2, 2023
7626361
chore(deps): bump github.com/ugorji/go/codec from 1.2.7 to 1.2.8 (#3458)
dependabot[bot] Jan 3, 2023
79a61b9
chore(deps): bump github.com/mattn/go-isatty from 0.0.16 to 0.0.17 (#…
dependabot[bot] Jan 3, 2023
c58e0d5
docs: update markdown format (#3446)
apriil15 Jan 5, 2023
8eb5f83
fix(router): tree bug where loop index is not decremented. (#3460)
kristiansvalland Jan 7, 2023
47ae6ee
chore(deps): bump golang.org/x/net from 0.4.0 to 0.5.0 (#3466)
dependabot[bot] Jan 10, 2023
3010cbd
chore(deps): bump github.com/bytedance/sonic from 1.6.0 to 1.6.1 (#3467)
dependabot[bot] Jan 10, 2023
7cb151b
fix(context): panic on NegotiateFormat - index out of range (#3397)
adrianiacobghiula Jan 16, 2023
97082f8
chore(deps): bump github.com/bytedance/sonic from 1.6.1 to 1.7.0 (#3473)
dependabot[bot] Jan 17, 2023
1660995
Adjust the position of some functions (#3385)
Heliner Jan 17, 2023
8cd11c8
chore(docs): Remove the Brigade project, because the Gin is no longer…
mstmdev Jan 17, 2023
b2d4185
Replace bytes.Buffer with strings.Builder where appropriate (#3347)
hopehook Jan 20, 2023
ea17875
chore(deps): bump golangci/golangci-lint-action from 3.3.1 to 3.4.0 (…
dependabot[bot] Jan 31, 2023
c5fd063
chore(deps): bump github.com/go-playground/validator/v10 (#3482)
dependabot[bot] Jan 31, 2023
e02ae6a
chore(router): match method added to routergroup for multiple HTTP me…
alirezaeftekhari Feb 6, 2023
153b229
chore(deps): bump github.com/ugorji/go/codec from 1.2.8 to 1.2.9 (#3491)
dependabot[bot] Feb 7, 2023
0c96a20
Stop useless panicking in context and render (#2150)
eeonevision Feb 12, 2023
bd82c9e
chore(go): Add support go 1.20 (#3484)
mstmdev Feb 12, 2023
c1d06e3
add supprt for go1.20 http.rwUnwrapper to gin.responseWriter (#3489)
davidmdm Feb 12, 2023
d07db17
chore(deps): bump golang.org/x/net from 0.5.0 to 0.6.0 (#3498)
dependabot[bot] Feb 14, 2023
81ac7d5
Add escape logic for header (#3500)
t0rchwo0d Feb 17, 2023
fc1c432
fix(security): vulnerability GO-2023-1571 (#3505)
kevinmichaelchen Feb 18, 2023
4cee78f
Fix #3500 Add escape logic for header (#3503)
t0rchwo0d Feb 19, 2023
ea03e10
docs(readme): release v1.9.0 version (#3474)
thinkerou Feb 21, 2023
0b5df9f
chore(deps): bump github.com/bytedance/sonic from 1.7.1 to 1.8.1 (#3508)
dependabot[bot] Feb 21, 2023
943e93c
chore(deps): bump github.com/ugorji/go/codec from 1.2.9 to 1.2.10 (#3…
dependabot[bot] Feb 21, 2023
1e1f0b1
chore: support min go version 1.18 (#3511)
thinkerou Mar 1, 2023
d1b2408
chore(deps): bump github.com/stretchr/testify from 1.8.1 to 1.8.2 (#3…
dependabot[bot] Mar 1, 2023
457fabd
chore(deps): bump github.com/bytedance/sonic from 1.8.1 to 1.8.2 (#3516)
dependabot[bot] Mar 1, 2023
de1c4ec
refactor: use bytes.ReplaceAll directly (#3455)
lgbgbl Mar 1, 2023
a889c58
Convert strings and slices using the officially recommended way (#3344)
hopehook Mar 2, 2023
fe989b6
docs: changed documentation link for trusted proxies (#3575)
mozoarella Apr 26, 2023
757a638
chore: improve linting, testing, and GitHub Actions setup (#3583)
appleboy Apr 26, 2023
eac2daa
chore: update dependencies for various packages and libraries (#3585)
appleboy Apr 27, 2023
6a0556e
improve render code coverage (#3525)
CCpro10 May 10, 2023
1ab2689
chore(deps): bump golang.org/x/net from 0.9.0 to 0.10.0 (#3599)
dependabot[bot] May 24, 2023
6bdc725
Fix typos in ISSUE_TEMPLATE.md (#3616)
hirokinakano May 26, 2023
20cd6bc
chore(deps): bump github.com/go-playground/validator/v10 (#3610)
dependabot[bot] May 26, 2023
9f5ecd4
chore(deps): bump actions/setup-go from 3 to 4 (#3543)
dependabot[bot] May 26, 2023
2d4bbec
fix lack of escaping of filename in Content-Disposition (#3556)
motoyasu-saburi May 29, 2023
bb1fc2e
fix Request.Context() checks (#3512)
bvidosits May 29, 2023
4ea0e64
Ready release gin 1.9.1 (by: thinkerou) (#3630)
adrianosela Jun 1, 2023
d4a6426
chore(CI): update release args (#3595)
qloog Jun 5, 2023
02e754b
Upgrade golang.org/x/net -> v0.13.0 (#3684)
cpcf Aug 4, 2023
62b50cf
chore: update dependencies to latest versions (#3694)
appleboy Aug 10, 2023
d16fdb1
chore(deps): bump golang.org/x/net from 0.13.0 to 0.14.0 (#3688)
dependabot[bot] Aug 11, 2023
bb2d8cf
test(render): increased unit tests coverage (#3691)
araujo88 Aug 12, 2023
e32b5e3
chore(deps): bump golangci/golangci-lint-action from 3.4.0 to 3.7.0 (…
dependabot[bot] Aug 27, 2023
dc9cff7
chore(deps): bump github.com/go-playground/validator/v10 from 10.14.0…
dependabot[bot] Aug 27, 2023
c2ba8f1
chore(deps): bump actions/checkout from 3 to 4 (#3712)
dependabot[bot] Sep 8, 2023
a481ee2
chore(http): use white color for HTTP 1XX (#3741)
viralparmarme Sep 27, 2023
bdde009
chore(deps): bump golang.org/x/net from 0.14.0 to 0.18.0 (#3774)
dependabot[bot] Nov 16, 2023
0aeac86
chore(deps): bump github.com/go-playground/validator/v10 from 10.15.1…
dependabot[bot] Nov 16, 2023
49f45a5
docs: remove redundant comments (#3765)
WeiTheShinobi Nov 16, 2023
44d0dd7
fix: Add pointer support for url query params (#3659) (#3666)
omkar-foss Nov 16, 2023
386d244
fix(tree): correctly expand the capacity of params (#3502)
georgijd-form3 Dec 7, 2023
081b36e
chore(deps): bump actions/setup-go from 4 to 5 (#3798)
dependabot[bot] Dec 13, 2023
811f271
chore(deps): bump goreleaser/goreleaser-action from 4 to 5 (#3721)
dependabot[bot] Dec 13, 2023
53fbf4d
chore(deps): bump github.com/pelletier/go-toml/v2 from 2.0.8 to 2.1.1…
dependabot[bot] Dec 13, 2023
160c173
chore: update GitHub Actions configuration (#3792)
appleboy Jan 18, 2024
857db39
chore(deps): bump github/codeql-action from 2 to 3 (#3806)
dependabot[bot] Jan 19, 2024
4a40f8f
fix(sec): upgrade golang.org/x/crypto to 0.17.0 (#3832)
chncaption Feb 1, 2024
8ab47c6
ci(lint): update tooling and workflows for consistency (#3834)
appleboy Feb 1, 2024
a64286a
chore(deps): update dependencies to latest versions (#3835)
appleboy Feb 1, 2024
c6ae2e6
feat(logger): ability to skip logs based on user-defined logic (#3593)
palvaneh Feb 2, 2024
9f598a3
fix(router): catch-all conflicting wildcard (#3812)
FirePing32 Feb 4, 2024
3dc1cd6
fix(binding): binding error while not upload file (#3819) (#3820)
clearcodecn Feb 5, 2024
e957d1a
chore(deps): bump codecov/codecov-action from 3 to 4 (#3838)
dependabot[bot] Feb 6, 2024
86ff4a6
fix(header): Allow header according to RFC 7231 (HTTP 405) (#3759)
Crocmagnon Feb 6, 2024
82bcd6d
fix(binding): dereference pointer to struct (#3199)
echovl Feb 7, 2024
bb3519d
chore(IP): add TrustedPlatform constant for Fly.io. (#3839)
ab Feb 7, 2024
000fdb3
ci(testing): add go1.22 version (#3842)
appleboy Feb 18, 2024
ecdbbbe
chore: refactor CI and update dependencies (#3848)
appleboy Feb 19, 2024
739d2d9
chore(perf): Optimize the Copy method of the Context struct (#3859)
1911860538 Mar 5, 2024
ae15646
test(http): use constant instead of numeric literal (#3863)
testwill Mar 5, 2024
9c61295
chore(header): Add support for RFC 9512: application/yaml (#3851)
vincentbernat Mar 5, 2024
f75144a
docs: fix typo in comment (#3868)
testwill Mar 5, 2024
09f8224
fix(route): Add fullPath in context copy (#3784)
KarthikReddyPuli Mar 6, 2024
3ea8bd9
chore(refactor): modify interface check way (#3855)
demoManito Mar 6, 2024
97eab7d
test(git): gitignore add develop tools (#3370)
demoManito Mar 8, 2024
5f458dd
feat(auth): add proxy-server authentication (#3877)
EndlessParadox1 Mar 11, 2024
646312a
fix: protect Context.Keys map when call Copy method (#3873)
kingcanfish Mar 11, 2024
83fc767
docs: fix typo in function documentation (#3872)
TotomiEcio Mar 11, 2024
ac5e84d
feat(engine): Added `OptionFunc` and `With` (#3572)
flc1125 Mar 11, 2024
1b3c085
chore(debug): add ability to override the debugPrint statement (#2337)
josegonzalez Mar 11, 2024
ab8042e
chore(request): check reader if it's nil before reading (#3419)
noahyao1024 Mar 11, 2024
f70dd00
fix(engine): fix unit test (#3878)
flc1125 Mar 12, 2024
861ffb9
docs(middleware): comments to function `BasicAuthForProxy` (#3881)
EndlessParadox1 Mar 12, 2024
990c44a
docs(context): Added deprecation comments to BindWith (#3880)
flc1125 Mar 12, 2024
ee70b30
docs: Add document to constant `AuthProxyUserKey` and `BasicAuthFor…
EndlessParadox1 Mar 13, 2024
fd60a24
test(path): Optimize unit test execution results (#3883)
flc1125 Mar 14, 2024
0d9dbbb
chore(security): upgrade Protobuf for CVE-2024-24786 (#3893)
Fotkurz Mar 18, 2024
2b1da2b
fix(context): make context Value method adhere to Go standards (#3897)
FarmerChillax Mar 21, 2024
78f4687
build(codecov): Added a codecov configuration (#3891)
flc1125 Mar 21, 2024
8790d08
fix(uri): query binding bug (#3236)
illiafox Mar 21, 2024
d4e4136
Revert "fix(uri): query binding bug (#3236)" (#3899)
appleboy Mar 22, 2024
fd1faad
feat(binding): support override default binding implement (#3514)
ssfyn Mar 23, 2024
7a865dc
feat(bind): ShouldBindBodyWith shortcut and change doc (#3871)
RedCrazyGhost Mar 23, 2024
c964ad3
chore(optimize): the ShouldBindUri method of the Context struct (#3911)
1911860538 Apr 1, 2024
56dc72c
ci(Makefile): vet command add .PHONY (#3915)
imalasong Apr 2, 2024
8acbe65
ci(release): refactor changelog regex patterns and exclusions (#3914)
appleboy Apr 2, 2024
c6f90df
chore: update various Go dependencies to latest versions (#3901)
appleboy Apr 2, 2024
0397e5e
chore: update changelog categories and improve documentation (#3917)
appleboy Apr 7, 2024
f80ade7
chore(deps): bump golangci/golangci-lint-action from 4 to 5 (#3941)
dependabot[bot] Apr 29, 2024
b4f66e9
chore(deps): bump github.com/bytedance/sonic from 1.11.3 to 1.11.6 (#…
dependabot[bot] Apr 29, 2024
a182195
feat(binding): Support custom BindUnmarshaler for binding. (#3933)
dkkb May 7, 2024
638aa19
chore: update external dependencies to latest versions (#3950)
appleboy May 7, 2024
39089af
chore: refactor configuration files for better readability (#3951)
appleboy May 7, 2024
75ccf94
feat: update version constant to v1.10.0 (#3952)
appleboy May 7, 2024
490accf
docs: update documentation and release notes for Gin v1.10.0 (#3953)
appleboy May 7, 2024
e60113d
docs(engine): fix comments for the `With` (#3955)
flc1125 May 7, 2024
8dd0889
refactor(binding): use strings.Cut to replace strings.Index (#3522)
lgbgbl May 7, 2024
f5f5da8
docs(gin): update link to dont-trust-all-proxies section (#3938) (#3945)
codespearhead May 7, 2024
7d14792
fix(gin): data race warning for gin mode (#1580)
kplachkov May 8, 2024
b1c1e7b
ci: update Go version requirements and remove test files (#3957)
appleboy May 8, 2024
8791c96
feat(fs): Export, test and document OnlyFilesFS (#3939)
joeig May 8, 2024
3ac729d
feat(gin): support http3 using quic-go/quic-go (#3210)
thinkerou May 9, 2024
7e29806
build: update Gin minimum Go version to 1.21 (#3960)
appleboy May 9, 2024
c677ccc
fix(go): invalid Go toolchain version (#3961)
thinkerou May 9, 2024
40131af
ci(Makefile): added help and descriptions to targets (#3964)
tr1sm0s1n May 13, 2024
6ca8ddb
feat(binding): add BindPlain (#3904)
guonaihong May 13, 2024
a569ed8
docs(readme): fix language and moved link (#3962)
truecrunchyfrog May 13, 2024
3f5b0af
refactor(slice): simplify SliceValidationError Error method (#3910)
1911860538 May 13, 2024
36b0ded
fix(context): check handler is nil (#3413)
hktalent May 13, 2024
4f339e6
fix(context): YAML judgment logic in Negotiate (#3966)
RedCrazyGhost May 14, 2024
e0d46de
fix(context): verify URL is Non-nil in initQueryCache() (#3969)
adrianosela May 19, 2024
24d6764
feat(form): add custom string slice for form tag unmarshal (#3970) (#…
bruceNu1l May 23, 2024
334160b
chore(tree): replace the self-defined 'min' to official one (#3975)
EndlessParadox1 May 24, 2024
4621b7a
feat(router): add literal colon support (#1432) (#2857)
wssccc Jun 1, 2024
64ead9e
docs(readme): replace godoc with pkg (#3985)
mengzhuo Jun 6, 2024
9c081de
docs: fix typo in Gin Quick Start (#3997)
demouth Jun 15, 2024
626d55b
fix(gin): Do not panic when handling method not allowed on empty tree…
phsym Jun 22, 2024
5f55c6a
ci(lint): enable testifylint linter (#4010)
mmorel-35 Jul 14, 2024
cc4e114
chore(deps): bump golang.org/x/net from 0.25.0 to 0.27.0 (#4013)
dependabot[bot] Jul 14, 2024
3cb3067
feat(form): add array collection format in form binding (#3986)
slowhigh Aug 24, 2024
28e57f5
fix(form): Set default value for form fields (#4047)
ahmadSaeedGoda Sep 6, 2024
f2c861a
docs: fix route group example code (#4020)
demouth Sep 15, 2024
9d7c0e9
feat(context): GetXxx added support for more go native types (#3633)
CC11001100 Sep 15, 2024
f05f966
feat(form): Support default values for collections in form binding (#…
takanuva15 Sep 21, 2024
ad740d5
docs(context): fix some function names in comment (#4079)
wangjingcun Oct 25, 2024
b080116
docs(readme): add Portuguese documentation. (#4078)
YlanzinhoY Oct 25, 2024
299c6f3
docs: trimmed some white spaces (#4070)
tsukasaI Oct 25, 2024
647311a
refactor(context): refactor context handling and improve test robustn…
kingcanfish Oct 25, 2024
9d11234
docs(gin): Replace broken link to documentation with valid (#4064)
M3DZIK Oct 26, 2024
ea53388
fix(tree): Keep panic infos consistent when wildcard type build faild…
kingcanfish Oct 26, 2024
c8a3adc
refactor(context): simplify "GetType()" functions (#4080)
KaymeKaydex Oct 29, 2024
f875d87
chore(context): test context initialization and handler logic (#4087)
appleboy Nov 15, 2024
02c1144
ci(lint): enable perfsprint linter (#4090)
mmorel-35 Nov 15, 2024
e8d34d0
ci(lint): enable usestdlibvars linter (#4091)
mmorel-35 Nov 15, 2024
e46bd52
refactor(context): add an optional permission parameter to the SaveUp…
haesuo566 Nov 15, 2024
e2e80f3
chore(security): update vendor to fix CVE (#4121)
xlgao-zju Dec 28, 2024
23d6961
ci(lint): update workflows and improve test request consistency (#4126)
appleboy Dec 30, 2024
3f818c3
chore(security): upgrade quic-go version to 0.48.2 (#4127)
appleboy Dec 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ func main() {

<!-- Your expectation result of 'curl' command, like -->
```
$ curl http://localhost:8201/hello/world
$ curl http://localhost:9000/hello/world
Hello world
```

## Actual result

<!-- Actual result showing the problem -->
```
$ curl -i http://localhost:8201/hello/world
$ curl -i http://localhost:9000/hello/world
<YOUR RESULT>
```

Expand Down
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
- package-ecosystem: gomod
directory: /
schedule:
interval: weekly
49 changes: 49 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
name: "CodeQL"

on:
push:
branches: [master]
pull_request:
# The branches below must be a subset of the branches above
branches: [master]
schedule:
- cron: "0 17 * * 5"

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

permissions:
# required for all workflows
security-events: write

strategy:
fail-fast: false
matrix:
# Override automatic language detection by changing the below list
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
# TODO: Enable for javascript later
language: ["go"]

steps:
- name: Checkout repository
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
73 changes: 46 additions & 27 deletions .github/workflows/gin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,39 @@ on:
branches:
- master

permissions:
contents: read

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "^1"
- name: Setup golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.61.0
args: --verbose
test:
needs: lint
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
go: [1.13, 1.14, 1.15, 1.16]
test-tags: ['', nomsgpack]
go: ["1.22", "1.23"]
test-tags:
["", "-tags nomsgpack", '-tags "sonic avx"', "-tags go_json", "-race"]
include:
- os: ubuntu-latest
go-build: ~/.cache/go-build
- os: macos-latest
go-build: ~/Library/Caches/go-build
name: ${{ matrix.os }} @ Go ${{ matrix.go }} ${{ matrix.test-tags }}
runs-on: ${{ matrix.os }}
env:
Expand All @@ -23,40 +49,33 @@ jobs:
GOPROXY: https://proxy.golang.org
steps:
- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
cache: false

- name: Checkout Code
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}

- name: Install Dependencies
run: make tools

- name: Run Check
run: |
make vet
make fmt-check
make misspell-check
- uses: actions/cache@v4
with:
path: |
${{ matrix.go-build }}
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-

- name: Run Tests
run: make test

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
notification-gitter:
needs: test
runs-on: ubuntu-latest
steps:
- name: Notification failure message
if: failure()
run: |
PR_OR_COMPARE="$(if [ "${{ github.event.pull_request }}" != "" ]; then echo "${{ github.event.pull_request.html_url }}"; else echo "${{ github.event.compare }}"; fi)"
curl -d message="GitHub Actions [$GITHUB_REPOSITORY]($PR_OR_COMPARE) ($GITHUB_REF) [normal]($GITHUB_API_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID) ($GITHUB_RUN_NUMBER)" -d level=error https://webhooks.gitter.im/e/7f95bf605c4d356372f4
- name: Notification success message
if: success()
run: |
PR_OR_COMPARE="$(if [ "${{ github.event.pull_request }}" != "" ]; then echo "${{ github.event.pull_request.html_url }}"; else echo "${{ github.event.compare }}"; fi)"
curl -d message="GitHub Actions [$GITHUB_REPOSITORY]($PR_OR_COMPARE) ($GITHUB_REF) [normal]($GITHUB_API_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID) ($GITHUB_RUN_NUMBER)" https://webhooks.gitter.im/e/7f95bf605c4d356372f4
uses: codecov/codecov-action@v4
with:
flags: ${{ matrix.os }},go-${{ matrix.go }},${{ matrix.test-tags }}

- name: Format
if: matrix.go-version == '1.22.x'
run: diff -u <(echo -n) <(gofmt -d .)
31 changes: 31 additions & 0 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Goreleaser

on:
push:
tags:
- "*"

permissions:
contents: write

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "^1"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@ count.out
test
profile.out
tmp.out

# Develop tools
.idea/
.vscode/
72 changes: 72 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
run:
timeout: 5m
linters:
enable:
- asciicheck
- dogsled
- durationcheck
- errcheck
- errorlint
- exportloopref
- gci
- gofmt
- goimports
- gosec
- misspell
- nakedret
- nilerr
- nolintlint
- perfsprint
- revive
- testifylint
- usestdlibvars
- wastedassign

linters-settings:
gosec:
# To select a subset of rules to run.
# Available rules: https://github.com/securego/gosec#available-rules
# Default: [] - means include all rules
includes:
- G102
- G106
- G108
- G109
- G111
- G112
- G201
- G203
perfsprint:
err-error: true
errorf: true
fiximports: true
int-conversion: true
sprintf1: true
strconcat: true
testifylint:
enable-all: true

issues:
exclude-rules:
- linters:
- structcheck
- unused
text: "`data` is unused"
- linters:
- staticcheck
text: "SA1019:"
- linters:
- revive
text: "var-naming:"
- linters:
- revive
text: "exported:"
- path: _test\.go
linters:
- gosec # security is not make sense in tests
- linters:
- revive
path: _test\.go
- path: gin.go
linters:
- gci
56 changes: 56 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
project_name: gin

builds:
- # If true, skip the build.
# Useful for library projects.
# Default is false
skip: true

changelog:
# Set it to true if you wish to skip the changelog generation.
# This may result in an empty release notes on GitHub/GitLab/Gitea.
disable: false

# Changelog generation implementation to use.
#
# Valid options are:
# - `git`: uses `git log`;
# - `github`: uses the compare GitHub API, appending the author login to the changelog.
# - `gitlab`: uses the compare GitLab API, appending the author name and email to the changelog.
# - `github-native`: uses the GitHub release notes generation API, disables the groups feature.
#
# Defaults to `git`.
use: github

# Sorts the changelog by the commit's messages.
# Could either be asc, desc or empty
# Default is empty
sort: asc

# Group commits messages by given regex and title.
# Order value defines the order of the groups.
# Proving no regex means all commits will be grouped under the default group.
# Groups are disabled when using github-native, as it already groups things by itself.
#
# Default is no groups.
groups:
- title: Features
regexp: "^.*feat[(\\w)]*:+.*$"
order: 0
- title: "Bug fixes"
regexp: "^.*fix[(\\w)]*:+.*$"
order: 1
- title: "Enhancements"
regexp: "^.*chore[(\\w)]*:+.*$"
order: 2
- title: "Refactor"
regexp: "^.*refactor[(\\w)]*:+.*$"
order: 3
- title: "Build process updates"
regexp: ^.*?(build|ci)(\(.+\))??!?:.+$
order: 4
- title: "Documentation updates"
regexp: ^.*?docs?(\(.+\))??!?:.+$
order: 4
- title: Others
order: 999
Loading