Commit Graph

338 Commits

Author SHA1 Message Date
a2tt f073e33fb9
fix: typo (#3086) 2022-03-18 17:41:09 +08:00
thinkgo 417b142703
feat: add StaticFileFS (#2749)
* RouterGroup.StaticFileFS added
add StaticFileFS ad README

* fix Static content mistake

* update README `tab`
improve StaticFile and StaticFileFS code, use staticFileHandler
2022-03-18 09:52:23 +08:00
linzi 90330e2a76
Distinguish between group and nested group (#3083) 2022-03-17 11:55:08 +08:00
phithon ecadd82592
doc: change the form name of upload example code (#3076) 2022-03-15 11:24:17 +08:00
jincheng9 d062a6a615
docs: redirect to the correct line of code (#2998) 2021-12-26 08:02:01 +08:00
linzi 1538ece13f
Update README.md (#2997) 2021-12-23 07:51:12 +08:00
linzi e56d18f19d
Update README.md (#2985) 2021-12-11 16:24:10 +08:00
minarc f068099d0d
Update README.md (#2954) 2021-11-28 09:24:14 +08:00
Notealot 2d3d6d2f13
Provide custom options of TrustedPlatform for another CDN services (#2906)
* refine TrustedPlatform and docs

* refactor for switch

* refactor switch to if statement
2021-10-24 08:34:03 +08:00
Allen Ren 34ae7777ca
README.md: fix a typo (#2913) 2021-10-22 21:26:14 +08:00
Notealot 39181329de
Tidy: Complete TrustedProxies feature (#2887) 2021-10-06 09:37:25 +08:00
Aravinth Sundaram ef168679ce
Correcting grammatical errors in README file (#2880) 2021-09-28 08:57:36 +08:00
goqihoo b463b1c2a1
Update README.md (#2804)
1. c.FullPath() == "/user/:name/*action"
get following error:
evaluated but not used 
2. c.String(http.StatusOK, "The available groups are [...]", name)
get following error:
undefined: name
2021-08-11 09:42:25 +08:00
voidman 690aa2b1b9
feat(binding): support custom struct tag (#2720)
* feat(binding): support custom struct tag

Add function `binding.MapFormWithTag` (#2719)

* doc: add 'bind form-data with custom struct tag'

Add 'Bind form-data request with custom struct and custom tag' section (#2719)

* test(binding): add test for MapFromWithTag
2021-06-30 00:53:56 +08:00
Jeff fb8a113f8d
ci: add github action workflows (#2596)
* ci: add github action workflows

* test: fixed the TestUnixSocket test on windows (#20)

* ci: add github action workflows (#18)

* Remove .travis.yml

* ci: replace GITTER_ROOM_ID and upload coverage every time you go test

* ci: update coverage using codecov/codecov-action@v1

* Merge branch 'master' into github-actions

* repo: replace travis ci to github actions

* ci: add go version 1.16

* fix: go install requires a specific version

* chore(ci): remove go 1.12 support

* chore(ci): remove os windows-latest

Co-authored-by: thinkerou <thinkerou@gmail.com>
Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2021-06-23 13:10:49 +08:00
yugu d7091e7dec
README.md update (#2715)
Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2021-05-19 10:57:23 +08:00
y-yagi 5452a1d3ef
Add note about `nomsgpack` tag to the readme (#2703)
Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2021-05-01 14:13:50 +08:00
y-yagi 1acb459c10
Fix example code of `Bind Uri` (#2710)
Need to pass a string to `gin.H` to show a message correctly.
2021-05-01 13:57:22 +08:00
zzjin c0418c48e4
Add support go-json, another drop-in json replacement. (#2680)
Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Co-authored-by: thinkerou <thinkerou@gmail.com>
2021-04-21 08:45:49 +08:00
thinkerou ee4de846a8
Remove go1.12 support (#2679)
* Revert "Adding ppc64le architecture support on travis-ci (#2538)"

This reverts commit fca3f95d7c.

* not support go1.12

* fix

* Update errors_test.go

* Update debug.go
2021-04-12 00:29:34 +08:00
Manu MA bfc8ca285e
feat(engine): add trustedproxies and remoteIP (#2632)
Co-authored-by: Søren L. Hansen <soren@linux2go.dk>
Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Co-authored-by: thinkerou <thinkerou@gmail.com>
Co-authored-by: Javier Provecho Fernandez <javiertitan@gmail.com>
2021-04-06 11:37:25 +08:00
Ross Wolf f3de8132c5
Add mixed param and non-param paths (port of httprouter#329) (#2663)
Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2021-04-06 10:49:08 +08:00
Alexander Melentyev e899771392
chore: Deleted spaces (#2622) 2021-01-27 09:58:21 +08:00
Josep Jesus Bigorra Algaba 46ddd4259c
Fixes to the graceful shutdown example (#2552)
* Change error comparison to use errors.Is() and add a line of whitespace before the if statement on graceful shutdown

* Change from log.Fatalf to log.Printf to ensure the graceful shutdown actually works

Co-authored-by: J. J. Bigorra <josep@prowarehouse.nl>
Co-authored-by: thinkerou <thinkerou@gmail.com>
2021-01-13 09:06:12 +08:00
thinkerou 16cd8cdd4e
ci: romove go1.11 for gin1.7 (#2540) 2020-10-25 17:08:30 +08:00
Zasda Yusuf Mikail d541085b59
Add some missing dots on README (#2519)
Signed-off-by: Zasda Yusuf Mikail <zasdaym@gmail.com>

Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2020-10-16 09:32:10 +08:00
yugu 1f232c7f47
docs:close the body of the response (#2494) 2020-09-09 20:00:44 +08:00
Dennis Cho b860d8672d
Fix typo (#2489) 2020-09-02 23:15:25 +08:00
森 優太 c6d6df6d5a
Docs: Update README.md Custom Validator sample code (#2448)
Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2020-08-01 15:26:29 +08:00
Hiroyuki Tanaka 44e78a78d4
README: Change badge to pkg.go.dev (#2449) 2020-08-01 15:03:33 +08:00
Johnny Dallas 4cabdd303f
Add CustomRecovery builtin middleware (#2322)
* Add CustomRecovery and CustomRecoveryWithWriter methods

* add CustomRecovery example to README

* add test for CustomRecovery

* support RecoveryWithWriter(io.Writer, ...RecoveryFunc)
2020-07-09 09:40:00 +08:00
Miles 5f261fa752
Add a redirect sample for POST method (#2389)
* Add a redirect sample for POST method

Refer to issue https://github.com/gin-gonic/gin/issues/444

* put an empty line before 1396

Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2020-05-24 11:37:32 +08:00
Anup Kumar Panwar 82b284fd77
uncomment the code (#2362) 2020-05-08 08:50:26 +08:00
bn4t 235898e642
Fix typo (#2358) 2020-05-05 23:20:00 +08:00
Bo-Yi Wu 05464a8f6b
docs: update benchmark result v1.6.3 (#2355) 2020-05-05 16:37:40 +08:00
thinkerou 747efffd2a
chore: update godoc address (#2357) 2020-05-05 14:06:42 +08:00
Shilin Wang 4f208887e1
update set cookie example (#2312)
fix #2308
2020-04-08 23:31:31 +08:00
Igor H. Vieira c4fd2489ce
Improved the graceful shutdown and restart section and removed… (#2288) 2020-03-22 10:25:35 +08:00
Nikifor Seryakov 1d055af1bc
FileFromFS (#2112)
* Context.FileFromFS added

* Context File and FileFromFS examples at README

Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2020-03-07 10:23:33 +08:00
Bo-Yi Wu 863ad2d4de
docs(badge): add todo badge (#2240)
fix https://github.com/gin-gonic/gin/issues/2236

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2020-02-21 16:33:36 +08:00
Andy Pan 07c0f05f24 Renew README to fit the modification of SetCookie method (#2217)
fix #2214
2020-01-23 07:54:08 +08:00
John Bampton 59ab588bf5 Remove broken link from README. (#2198) 2019-12-30 21:55:08 +08:00
Lin Kao-Yuan 9b3477ef9d Update validator to v10 (#2190)
Passed my manual test, output nothing different.
2019-12-20 14:01:58 +08:00
飞雪无情 cc14a770cd upgrade go-validator to v10 for README (#2189) 2019-12-19 11:21:58 +08:00
Lin Kao-Yuan 1b480ed294 Update to currently output (#2188)
Excuse me, I forgot change output in #2186
2019-12-18 21:08:58 +08:00
Lin Kao-Yuan aee83e040b Fix "Custom Validators" example (#2186)
* Update fixed error code from merged commit

According to [this](874dcfa6c4) merged commit.

* Fixed incorrect testing date.

Original testing date incompatible demo require, can't get expect result.
check_in date need NOT AFTER check_out date.
2019-12-18 09:44:33 +08:00
Victor Castell 77b8344169 Add project to README (#2165)
Add Dkron as user of Gin in the README
2019-12-02 20:59:56 +08:00
thinkerou 3c8e29b53c
drop support govendor (#2148) 2019-11-25 15:42:23 +08:00
BradyBromley 3737520f17 Changed wording for clarity in README.md (#2122) 2019-11-25 11:03:36 +08:00
thinkerou 2ee0e96394 Drop support go1.10 (#2147) 2019-11-24 23:07:56 +08:00