3
0
mirror of https://github.com/gin-gonic/gin.git synced 2025-04-24 18:37:24 +08:00

41 Commits

Author SHA1 Message Date
thinkerou
b04917c53e
chore: upgrade golangci-lint and fix golangci-lint error () 2022-08-15 21:38:20 +08:00
thinkerou
4b68a5f12a
chore: update go.mod and remove space from copyright ()
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-28 10:42:28 +08:00
micanzhang
ef687e0db2
feat: automatically SetMode to TestMode when run go test. ()
related issue: https://github.com/gin-gonic/gin/issues/3134
2022-05-14 09:11:35 +08:00
jincheng9
fb5f045417
fix: description error () 2021-12-15 23:27:23 +08:00
Matthieu MOREL
435a76b735
chore(ci): update dependencies ()
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Matthieu MOREL <mmorel-35@users.noreply.github.com>
2021-08-19 15:46:31 +08:00
Rubi
e753c502dc
gin mode unknown: show available mode ()
Co-authored-by: thinkerou <thinkerou@gmail.com>
2021-01-12 00:03:31 +08:00
thinkerou
54175dbe72
chore: update the result of CR ()
* chore: update the result of CR

* Update utils.go

* Update utils.go

* Update context.go

* Update context.go
2020-05-04 11:40:41 +08:00
bestgopher
a4e947a356
update:SetMode function () 2020-04-16 22:31:58 +08:00
Ivan Chen
70ca31bc11 fix comment in mode.go ()
EnableJsonDisallowUnknownFields => EnableJsonDecoderDisallowUnknownFields
2019-11-24 16:22:18 +08:00
Krzysztof Szafrański
f38c30a0d2 feat(binding): add DisallowUnknownFields() in gin.Context.BindJSON() () 2019-09-06 13:56:59 +08:00
David Zhang
d7daffc26b Use camel case instead of ALL_CAPS ()
* Use camel case instead of ALL_CAPS

* Update mode.go
2019-02-22 12:53:47 +08:00
Sai
d6b2c13b18 Fix typo () 2018-11-12 18:58:24 +08:00
root@andrea:~#
8fb21a8bef Added some comments to avoid having golint warnings ()
The following comments to vars, conts and method were added to pass  `golinter` with 100%.

![captura de pantalla 2018-10-31 a la s 15 23 37](https://user-images.githubusercontent.com/10160626/47819725-faba3780-dd20-11e8-978c-1b3ab7de26ed.png)
2018-11-01 15:30:19 +08:00
田欧
6db092f778 chore: add some annotations ()
ref  should all annotations and can close  .
2018-09-15 15:21:54 +08:00
Mario Kostelac
5d3f30cfc8 Make "" mode being the same as debug mode ()
Not setting mode explicitly sets gin into debug mode, but it does not
make it possible to retrieve gin mode as Debug since it's set to "".
2018-02-23 09:09:33 +08:00
Boris Borshevsky
6f94fd05c9 Linting and optimizing struct memory signature. ()
* fix cleanPath spell ()

* linter and optimize structs
2017-11-29 10:50:14 +08:00
田欧
7e5aff8ea7 simple code and increase coverage () 2017-11-21 10:03:57 +08:00
田欧
3b300929e8 Empty string check () 2017-09-29 00:22:35 +08:00
whirosan
fb7448f081 feat(binding): add UseNumber() in gin.Context.BindJSON() () close
* resolve  add option to UseNumber() in gin.Context.BindJSON()

* add test
2017-07-10 10:33:35 +02:00
Bo-Yi Wu
b1a15020d0 fix: gofmt error. () 2017-03-11 07:35:29 -06:00
ABHISHEK SONI
15fc943ba4 Removed additional Iota
I think assigning iota to each constant is not required
2016-09-29 19:32:27 +05:30
Sergey Fedchenko
7ccbc8f584 Default writers must be io.Writers 2016-04-15 14:24:13 +06:00
Javier Provecho Fernandez
9e930b9bdd lint code 2016-04-15 01:16:46 +02:00
Manu Mtz.-Almeida
61fae4997d Improves documentation 2016-01-26 22:40:29 +01:00
Manu Mtz.-Almeida
60f66918f8 go-colorable does not work in app engine 2016-01-26 18:53:00 +01:00
Manu Mtz-Almeida
0d1b9856ed Adds shortcut for disabling bind validation. 2015-05-31 17:03:15 +02:00
Manu Mtz-Almeida
66fa43f9ae Preparing release Gin v1.0rc1 2015-05-22 16:55:16 +02:00
Manu Mtz-Almeida
ac0ad2fed8 Improves unit tests 2015-04-08 02:58:35 +02:00
Manu Mtz-Almeida
873aecefa9 Renames DefaultLogFile to DefaultWriter 2015-04-07 23:34:16 +02:00
Manu Mtz-Almeida
6c788a4300 Adds default file log option 2015-04-07 18:37:17 +02:00
Manu Mtz-Almeida
ea962038e1 Cosmetic changes 2015-04-07 12:27:23 +02:00
Manu Mtz-Almeida
48fec0650d Cosmetic changes 2015-03-23 06:03:12 +01:00
Manu Mtz-Almeida
3e3ced70d4 Using log.Panic instead 2015-03-23 05:50:10 +01:00
Manu Mtz-Almeida
c8ee142717 Google App Engine does not support fmt. Using log instead 2015-03-23 04:40:33 +01:00
Mirza Ceric
a57db1a355 fixed debugPrint 2014-10-21 16:48:21 +02:00
Manu Mtz-Almeida
aa7b00a083 General refactoring. Part 2. 2014-10-09 01:40:42 +02:00
Manu Mtz-Almeida
07a3961941 General refactoring 2014-10-08 21:37:26 +02:00
Manu Mtz-Almeida
fd2e342569 Adds API for interrogating current mode
It returns one of the following values:
- gin.	DebugMode
- gin.	ReleaseMode
- gin.	TestMode
2014-09-08 20:54:08 +02:00
Manu Mtz-Almeida
8e5397bfa0 Adds in-code license 2014-08-29 19:49:50 +02:00
Manu Mtz-Almeida
0ed259ca34 Adds TestMode 2014-08-21 01:01:05 +02:00
Manu Mtz-Almeida
809eee8a72 Adds debug mode (part 1)
- Adds API to switch the gin's mode
- Log listening port
- Log routes
2014-08-19 03:40:52 +02:00