Commit Graph

1676 Commits

Author SHA1 Message Date
mstmdev 3a6865ac03
docs(readme): The krakend is rename to lura (#3377) 2022-11-06 17:09:25 +08:00
RoCry 55e27f1246
fix(engine): missing route params for CreateTestContext (#2778) (#2803) 2022-11-06 17:08:11 +08:00
王哈哈 971fe21876
docs(comment): Modify comment syntax error (#3389) 2022-11-06 17:05:10 +08:00
thinkerou 8b9c55e8b0
fix(route): redirectSlash bug (#3227)
fixes https://github.com/gin-gonic/gin/issues/2959
fixes https://github.com/gin-gonic/gin/issues/2282
fixes https://github.com/gin-gonic/gin/issues/2211
2022-11-06 17:02:40 +08:00
Jesse 51aea73ba0
fix: modify interface check way (#3327) 2022-10-20 00:49:19 +08:00
hopehook 33ab0fc155
refactor(struct): Remove redundant type conversions (#3345) 2022-10-16 09:49:24 +08:00
Mohana sai krishna Kandula 45c758e2f9
chore(file): Creates a directory named path (#3316)
Co-authored-by: mohanak <mohanak@mkcl.org>
2022-10-16 09:45:08 +08:00
John Bampton 24a1d2adb9
fix(typo): spelling `covert` -> `convert` (#3325) 2022-10-16 09:41:14 +08:00
mstmdev 4c64f1c385
chore(go): Add support go 1.19 (#3272) 2022-10-16 09:33:26 +08:00
mstmdev fa58bff301
chore(dep): Changes minimum support go version to go1.16 (#3361) 2022-10-16 09:32:28 +08:00
mstmdev 6296175f70
Fix the GO-2022-0969 and GO-2022-0288 vulnerabilities (#3333) 2022-10-12 14:18:12 +08:00
dependabot[bot] 6fab4c373e
chore(deps): bump actions/setup-go from 2 to 3 (#3340)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-11 15:39:38 +08:00
dependabot[bot] 78dad9d77d
chore(deps): bump github.com/go-playground/validator/v10 (#3330)
Bumps [github.com/go-playground/validator/v10](https://github.com/go-playground/validator) from 10.10.0 to 10.11.1.
- [Release notes](https://github.com/go-playground/validator/releases)
- [Commits](https://github.com/go-playground/validator/compare/v10.10.0...v10.11.1)

---
updated-dependencies:
- dependency-name: github.com/go-playground/validator/v10
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-20 14:44:55 +08:00
Konstantin Runov 814cd188eb
FIX TYPO: Gin by default useR -> ... useS (#3324) 2022-09-18 21:59:57 +08:00
Amir Hossein 2c9e5fe47a
rename variable because collide with the imported package name (#3298)
* rename variable because collide with the imported package name

* handle unhandled error in context_1.17_test.go
2022-09-01 10:21:27 +08:00
dependabot[bot] 0128d74f34
chore(deps): bump github.com/bytedance/sonic from 1.3.4 to 1.4.0 (#3293)
Bumps [github.com/bytedance/sonic](https://github.com/bytedance/sonic) from 1.3.4 to 1.4.0.
- [Release notes](https://github.com/bytedance/sonic/releases)
- [Commits](https://github.com/bytedance/sonic/compare/v1.3.4...v1.4.0)

---
updated-dependencies:
- dependency-name: github.com/bytedance/sonic
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-01 10:02:40 +08:00
dependabot[bot] de1f142ed4
chore(deps): bump github.com/goccy/go-json from 0.9.10 to 0.9.11 (#3292)
Bumps [github.com/goccy/go-json](https://github.com/goccy/go-json) from 0.9.10 to 0.9.11.
- [Release notes](https://github.com/goccy/go-json/releases)
- [Changelog](https://github.com/goccy/go-json/blob/master/CHANGELOG.md)
- [Commits](https://github.com/goccy/go-json/compare/v0.9.10...v0.9.11)

---
updated-dependencies:
- dependency-name: github.com/goccy/go-json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-01 10:01:58 +08:00
Dave Rolsky 2ae6157049
Fix typos in RouterGroup method docs (#3302)
There were a number of spots referring to a variable named "handle" that should be "handlers".
2022-08-31 14:34:33 +08:00
Alex fb13e822a4
Update gin.yml (#3304)
Signed-off-by: sashashura <93376818+sashashura@users.noreply.github.com>

Signed-off-by: sashashura <93376818+sashashura@users.noreply.github.com>
2022-08-31 14:33:25 +08:00
dependabot[bot] 1c48977cca
chore(deps): bump github.com/mattn/go-isatty from 0.0.14 to 0.0.16 (#3281)
Bumps [github.com/mattn/go-isatty](https://github.com/mattn/go-isatty) from 0.0.14 to 0.0.16.
- [Release notes](https://github.com/mattn/go-isatty/releases)
- [Commits](https://github.com/mattn/go-isatty/compare/v0.0.14...v0.0.16)

---
updated-dependencies:
- dependency-name: github.com/mattn/go-isatty
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-17 07:14:59 +08:00
Aoang de17fb1a33
Format with Go 1.19 formatter (#3277)
* Format with Go 1.19 formatter

This allows the GoDoc to take advantage of new markup syntax introduced in Go 1.19. This does not require that our minimum supported version be bumped to Go 1.19 since the pkgsite renders our godoc regardless of supported Go version.

* Add Format check
2022-08-17 07:14:19 +08:00
thinkerou b04917c53e
chore: upgrade golangci-lint and fix golangci-lint error (#3278) 2022-08-15 21:38:20 +08:00
dependabot[bot] 1b5ba251cf
chore(deps): bump github.com/bytedance/sonic from 1.3.2 to 1.3.4 (#3273)
Bumps [github.com/bytedance/sonic](https://github.com/bytedance/sonic) from 1.3.2 to 1.3.4.
- [Release notes](https://github.com/bytedance/sonic/releases)
- [Commits](https://github.com/bytedance/sonic/compare/v1.3.2...v1.3.4)

---
updated-dependencies:
- dependency-name: github.com/bytedance/sonic
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-15 09:52:06 +08:00
dependabot[bot] ad66d9d11a
chore(deps): bump google.golang.org/protobuf from 1.28.0 to 1.28.1 (#3262)
Bumps [google.golang.org/protobuf](https://github.com/protocolbuffers/protobuf-go) from 1.28.0 to 1.28.1.
- [Release notes](https://github.com/protocolbuffers/protobuf-go/releases)
- [Changelog](https://github.com/protocolbuffers/protobuf-go/blob/master/release.bash)
- [Commits](https://github.com/protocolbuffers/protobuf-go/compare/v1.28.0...v1.28.1)

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-02 15:28:30 +08:00
Rainshaw 8374ed2268
feat: add sonic json support (#3184)
* feat: add sonic json support

* fix: add blank line in readme
2022-08-02 10:20:59 +08:00
Bo-Yi Wu 79dd72deb9
docs: update markdown format (#3260)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2022-08-01 09:23:45 +08:00
dependabot[bot] c35bde97d5
chore(deps): bump github.com/goccy/go-json from 0.9.8 to 0.9.10 (#3251)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-31 13:02:22 +08:00
dependabot[bot] b57163a0e4
chore(deps): bump github.com/goccy/go-json from 0.9.7 to 0.9.8 (#3228)
Bumps [github.com/goccy/go-json](https://github.com/goccy/go-json) from 0.9.7 to 0.9.8.
- [Release notes](https://github.com/goccy/go-json/releases)
- [Changelog](https://github.com/goccy/go-json/blob/master/CHANGELOG.md)
- [Commits](https://github.com/goccy/go-json/compare/v0.9.7...v0.9.8)

---
updated-dependencies:
- dependency-name: github.com/goccy/go-json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-05 09:58:06 +08:00
dependabot[bot] e837e1cd18
chore(deps): bump github.com/stretchr/testify from 1.7.5 to 1.8.0 (#3229)
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.7.5 to 1.8.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.7.5...v1.8.0)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-05 09:56:54 +08:00
mstmdev 680be7d928
Add some tests for YAML and TOML formats (#3223) 2022-07-01 17:38:32 +08:00
mstmdev 088cdd74d4
Fix the value of ginSupportMinGoVer constant by semantic (#3221) 2022-07-01 10:31:31 +08:00
dependabot[bot] 92dd245c9b
chore(deps): bump github.com/stretchr/testify from 1.7.4 to 1.7.5 (#3213)
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.7.4 to 1.7.5.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.7.4...v1.7.5)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-28 10:44:54 +08:00
thinkerou 6de2245e62
switch min version of go to 1.15 (#3211) 2022-06-27 07:11:41 +08:00
dependabot[bot] 12b55b4fe9
chore(deps): bump github.com/stretchr/testify from 1.7.2 to 1.7.4 (#3207)
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.7.2 to 1.7.4.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.7.2...v1.7.4)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-24 22:06:46 +08:00
LanLanceYuan 815122a0f4
Fix a syntax error in a code comment (#3201) 2022-06-15 17:31:44 +08:00
dependabot[bot] 05caa5c00e
chore(deps): bump github.com/pelletier/go-toml/v2 from 2.0.1 to 2.0.2 (#3198)
Bumps [github.com/pelletier/go-toml/v2](https://github.com/pelletier/go-toml) from 2.0.1 to 2.0.2.
- [Release notes](https://github.com/pelletier/go-toml/releases)
- [Changelog](https://github.com/pelletier/go-toml/blob/v2/.goreleaser.yaml)
- [Commits](https://github.com/pelletier/go-toml/compare/v2.0.1...v2.0.2)

---
updated-dependencies:
- dependency-name: github.com/pelletier/go-toml/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-14 10:08:56 +08:00
Jordan Day 6c3a1d7063
Small doc fix on Context's ClientIP() method. (#3180) 2022-06-09 10:08:49 +08:00
dependabot[bot] f2182de38c
chore(deps): bump github.com/stretchr/testify from 1.7.1 to 1.7.2 (#3177)
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.7.1 to 1.7.2.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.7.1...v1.7.2)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-07 07:55:03 +08:00
Bo-Yi Wu ed049dd850
docs: release v1.8.1 version (#3176)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2022-06-06 21:01:40 +08:00
wei f197a8bae0
feat(context): add ContextWithFallback feature flag (#3166) (#3172)
Enable fallback Context.Deadline(), Context.Done(), Context.Err() and Context.Value()
2022-06-06 18:43:53 +08:00
Qt 92ba8e17aa
fix: typo (#3171) 2022-06-02 11:52:28 +08:00
Bo-Yi Wu 58303bde7d
docs(changelog): add break changes section (#3170)
* docs(changelog): add break changes section

* chore: update
2022-06-02 09:48:35 +08:00
dependabot[bot] 5fa34529ae
chore(deps): bump goreleaser/goreleaser-action from 2 to 3 (#3163)
Bumps [goreleaser/goreleaser-action](https://github.com/goreleaser/goreleaser-action) from 2 to 3.
- [Release notes](https://github.com/goreleaser/goreleaser-action/releases)
- [Commits](https://github.com/goreleaser/goreleaser-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: goreleaser/goreleaser-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-31 07:25:47 +08:00
thinkerou 38eb5acc6b
add v1.8.0 changelog (#3160) 2022-05-30 15:16:10 +08:00
Bo-Yi Wu 60e24d5690
chore(CI/CD): add go version release flow (#3159)
* chore(CI/CD): add go version release flow

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* chore: bump to v1.8.0

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* chore: update

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2022-05-28 15:23:00 +08:00
thinkerou 4b68a5f12a
chore: update go.mod and remove space from copyright (#3158)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-28 10:42:28 +08:00
Valentine Oragbakosi ed03102ef0
[GIN-001] - Add TOML bining for gin (#3081)
Co-authored-by: GitstartHQ <gitstart@users.noreply.github.com>
2022-05-28 08:34:43 +08:00
Thibault Jamet aa6002134e
Fix intercepting headers in middlewares (#1271)
* Fix intercepting headers in middlewares

As explained in the TestInterceptedHeader test, in case a middleware
filters out the headers, this middleware can be done inefficient in case
one following handler is using c.String or other methods writing to the
response body directly.

This commit fixes the issue by using c.Writer when writing the Status as
done in other c.Header, c.SetCookie and other response writers.

The bug has been originally discovered using
https://github.com/gin-contrib/gzip where a failing test has been added
here: https://github.com/tjamet/gzip/blob/header/gzip_test.go#L71

Signed-off-by: Thibault Jamet <tjamet@users.noreply.github.com>

* Skip Intercepted Header test for go <1.6

Signed-off-by: Thibault Jamet <tjamet@users.noreply.github.com>
2022-05-28 08:27:10 +08:00
Eric_Lee 87811a97bd
fix: the trusted proxies should support ipv6 address by default (#3033) 2022-05-28 08:14:35 +08:00
dependabot[bot] f1e942889a
chore(deps): bump golangci/golangci-lint-action from 3.1.0 to 3.2.0 (#3150)
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3.1.0 to 3.2.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v3.1.0...v3.2.0)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-18 22:27:27 +08:00