Commit Graph

1701 Commits

Author SHA1 Message Date
79a61b9032 chore(deps): bump github.com/mattn/go-isatty from 0.0.16 to 0.0.17 (#3457)
Bumps [github.com/mattn/go-isatty](https://github.com/mattn/go-isatty) from 0.0.16 to 0.0.17.
- [Release notes](https://github.com/mattn/go-isatty/releases)
- [Commits](https://github.com/mattn/go-isatty/compare/v0.0.16...v0.0.17)

---
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>
2023-01-03 11:39:57 +08:00
7626361587 chore(deps): bump github.com/ugorji/go/codec from 1.2.7 to 1.2.8 (#3458)
Bumps [github.com/ugorji/go/codec](https://github.com/ugorji/go) from 1.2.7 to 1.2.8.
- [Release notes](https://github.com/ugorji/go/releases)
- [Commits](https://github.com/ugorji/go/compare/v1.2.7...v1.2.8)

---
updated-dependencies:
- dependency-name: github.com/ugorji/go/codec
  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>
2023-01-03 10:40:53 +08:00
c9b27249fb chore(yaml): upgrade dependency to v3 version (#3456)
fixes https://github.com/gin-gonic/gin/issues/3451
fixes https://github.com/gin-gonic/gin/issues/3306
fixes https://github.com/gin-gonic/gin/issues/3362
fixes https://github.com/gin-gonic/gin/issues/2581
2023-01-02 12:40:48 +08:00
7d8fc1563b update context.go Get/Set method use defer (#3429)
Using defer to unlock  is more in line with go standards
2023-01-02 11:39:26 +08:00
41f2669ebc console logger HTTP status bug fixed and the corresponding unit test added (#3453) 2023-01-02 11:38:53 +08:00
82e1c53cc0 docs(readme): move more example to docs/doc.md (#3449) 2023-01-02 10:40:25 +08:00
8659ab573c chore(deps): bump github.com/goccy/go-json from 0.9.11 to 0.10.0 (#3424)
Bumps [github.com/goccy/go-json](https://github.com/goccy/go-json) from 0.9.11 to 0.10.0.
- [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.11...v0.10.0)

---
updated-dependencies:
- dependency-name: github.com/goccy/go-json
  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-12-25 13:49:44 +08:00
e868fd1d3d test(TOML): Add some tests for the TOML render (#3401) 2022-12-22 23:18:47 +08:00
297b664cf8 refactor: avoid calling strings.ToLower twice (#3433) 2022-12-22 23:17:19 +08:00
2285aa5430 docs(readme): release v1.8.2 version (#3420)
* docs(readme): release v1.8.2 version

* Update CHANGELOG.md
2022-12-21 15:02:00 +08:00
d4caeee7c7 Fix the GO-2022-1144 vulnerability (#3432) 2022-12-21 14:44:36 +08:00
f551d7d8c2 chore(deps): bump github.com/bytedance/sonic from 1.4.0 to 1.6.0 (#3442)
Bumps [github.com/bytedance/sonic](https://github.com/bytedance/sonic) from 1.4.0 to 1.6.0.
- [Release notes](https://github.com/bytedance/sonic/releases)
- [Commits](https://github.com/bytedance/sonic/compare/v1.4.0...v1.6.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-12-21 14:43:42 +08:00
483ac2a63b chore(deps): bump goreleaser/goreleaser-action from 3 to 4 (#3441)
Bumps [goreleaser/goreleaser-action](https://github.com/goreleaser/goreleaser-action) from 3 to 4.
- [Release notes](https://github.com/goreleaser/goreleaser-action/releases)
- [Commits](https://github.com/goreleaser/goreleaser-action/compare/v3...v4)

---
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>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-21 14:43:06 +08:00
cc367f9125 docs(context): #3369 modify the annotation about Context.Param() (#3414) 2022-12-01 13:15:31 +08:00
80cd679c43 chore(deps): bump github.com/pelletier/go-toml/v2 from 2.0.2 to 2.0.6 (#3408)
Bumps [github.com/pelletier/go-toml/v2](https://github.com/pelletier/go-toml) from 2.0.2 to 2.0.6.
- [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.2...v2.0.6)

---
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>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-23 15:34:18 +08:00
8fe209a447 chore(deps): bump golangci/golangci-lint-action from 3.3.0 to 3.3.1 (#3399)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-17 22:38:19 +08:00
c629689591 docs(readme): Add the TOML rendering example (#3400) 2022-11-17 22:37:50 +08:00
Qt
6150c488e7 remove deprecated of package io/ioutil (#3395) 2022-11-17 22:35:55 +08:00
234a1d33f7 docs(readme): Modify sample code bugs (#3394) 2022-11-17 22:34:37 +08:00
a0acf1df28 docs(readme): Using the embed package as a recommended example that build a single binary with templates (#3379) 2022-11-09 14:50:46 +08:00
212267d671 fix: fix typo in comment (#3371) 2022-11-08 19:54:48 +08:00
b682b8a54e chore(deps): bump golangci/golangci-lint-action from 3.2.0 to 3.3.0 (#3372)
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3.2.0 to 3.3.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v3.2.0...v3.3.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>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-08 19:53:33 +08:00
c4b3c2c23a chore(deps): bump github.com/stretchr/testify from 1.8.0 to 1.8.1 (#3373)
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.0 to 1.8.1.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.8.0...v1.8.1)

---
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>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-08 19:53:08 +08:00
aefae309a4 fix: test fmt.Println replace t.Error (#3328) 2022-11-06 17:12:11 +08:00
8edb7a71a1 docs(readme): Update some go website links (#3376) 2022-11-06 17:10:33 +08:00
3a6865ac03 docs(readme): The krakend is rename to lura (#3377) 2022-11-06 17:09:25 +08:00
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
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
51aea73ba0 fix: modify interface check way (#3327) 2022-10-20 00:49:19 +08:00
33ab0fc155 refactor(struct): Remove redundant type conversions (#3345) 2022-10-16 09:49:24 +08:00
45c758e2f9 chore(file): Creates a directory named path (#3316)
Co-authored-by: mohanak <mohanak@mkcl.org>
2022-10-16 09:45:08 +08:00
24a1d2adb9 fix(typo): spelling covert -> convert (#3325) 2022-10-16 09:41:14 +08:00
4c64f1c385 chore(go): Add support go 1.19 (#3272) 2022-10-16 09:33:26 +08:00
fa58bff301 chore(dep): Changes minimum support go version to go1.16 (#3361) 2022-10-16 09:32:28 +08:00
6296175f70 Fix the GO-2022-0969 and GO-2022-0288 vulnerabilities (#3333) 2022-10-12 14:18:12 +08:00
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
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
814cd188eb FIX TYPO: Gin by default useR -> ... useS (#3324) 2022-09-18 21:59:57 +08:00
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
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
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
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
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
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
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
b04917c53e chore: upgrade golangci-lint and fix golangci-lint error (#3278) 2022-08-15 21:38:20 +08:00
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
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
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