Commit Graph

961 Commits

Author SHA1 Message Date
Vyacheslav Dubinin
ceb250ba20 Move golang.org/x/net/context.Context interface implementation check to tests 2016-10-19 17:13:38 +03:00
Javier Provecho Fernandez
eadf4da8f6 Add codecov.io 2016-10-19 11:22:08 +02:00
Javier Provecho Fernandez
3900df04d2 Update go get for stable version
In the future, github default branch will be develop so running `go get github.com/gin-gonic/gin` will pull latest code from develop.
2016-10-12 16:51:06 +02:00
Javier Provecho Fernandez
f90cc43045 Add contribution guide 2016-10-12 16:42:56 +02:00
Bo-Yi Wu
7ec7df8b93 Add 1.7 test. 2016-10-12 22:23:43 +08:00
Bo-Yi Wu
f28b6cdd69 Merge pull request #710 from soniabhishek/patch-1
Removed additional Iota
2016-10-12 09:18:04 -05:00
Javier Provecho Fernandez
2dae550eb5 Merge branch 'develop' 2016-10-12 14:13:04 +02: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
Yehezkiel Syamsuhadi
61ba9db5af Make CreateTestContext public without importing net/http/httptest 2016-09-21 12:16:51 +10:00
Maxime Soulé
bf8da4a08a Context.Get() does not need to test whether Keys is nil or not 2016-09-09 11:37:22 +02:00
Tatsuya Hoshino
8464b14974 Remove an obsolete func in README 2016-06-08 07:44:56 +09:00
Danieliu
30f014c754 fix default log format
`reset` field should be after `method` in LoggerWithWriter function.
2016-05-26 16:21:50 +08:00
Manu Mtz.-Almeida
f931d1ea80 Merge pull request #620 from betahu/patch-1
Update README.md
2016-05-25 14:45:45 +02:00
betahu
bf5b09cc57 Update README.md
add code  to c.String
2016-05-17 15:14:47 +08:00
Javier Provecho Fernandez
542be2fe77 Merge pull request #588 from appleboy/patch-1
Add project lists using gin framework.
2016-04-15 13:10:04 +02:00
Javier Provecho Fernandez
cf256f51b1 Merge pull request #589 from appleboy/patch-3
update readme: add YAML example.
2016-04-15 13:09:00 +02:00
Javier Provecho Fernandez
3576efa535 Merge pull request #590 from seregayoga/develop
Default writers must be io.Writers
2016-04-15 13:08:28 +02:00
Sergey Fedchenko
7ccbc8f584 Default writers must be io.Writers 2016-04-15 14:24:13 +06:00
Bo-Yi Wu
e67cd9185e update readme: add YAML example. 2016-04-15 15:23:47 +08:00
Bo-Yi Wu
bab63c3ef9 Add project lists using gin framework. 2016-04-15 09:17:38 +08:00
Javier Provecho Fernandez
5caaac4c5c Push branch develop into master 2016-04-15 01:39:28 +02:00
Javier Provecho Fernandez
3c3526f1f1 fix test and build 2016-04-15 01:35:22 +02:00
Javier Provecho Fernandez
9e930b9bdd lint code 2016-04-15 01:16:46 +02:00
Javier Provecho Fernandez
89f1adf0eb add go report card to readme 2016-04-15 00:48:41 +02:00
Javier Provecho Fernandez
4df51ad4f8 Merge pull request #587 from roylou/develop
Write header immediately in AbortWithStatus(), close #585
2016-04-15 00:36:29 +02:00
Javier Provecho
007bd5124a closes #514, code from bobbo@b4f0b50 2016-04-14 23:47:49 +02:00
Roy Lou
4c4444b160 Write header immediately in AbortWithStatus()
Otherwise, caller needs to invoke WriteHeaderNow himself after
AbortWithStatus(), which is error-prone.

Also modified ErrorLoggerT() such that it always writes log to response
body. Otherwise calling AbortWithStatus() will fail to write body because
c.Writer.Written() is set true by WriteHeaderNow().
2016-04-15 00:02:29 +08:00
Javier Provecho Fernandez
7d0b329203 Push branch develop into master 2016-04-10 23:55:27 +02:00
Javier Provecho Fernandez
72ffff6e44 Merge pull request #581 from tebeka/develop
Rename to conform with test files naming (closes #580)
2016-04-09 13:29:52 +02:00
Miki Tebeka
2fd607be4c Rename to conform with test files naming (closes #580) 2016-04-07 07:33:28 +03:00
Javier Provecho Fernandez
233291e4e2 Merge pull request #575 from Saser/develop
Fix typos and improve wording
2016-04-02 20:48:52 +02:00
Javier Provecho Fernandez
dc85514303 Merge pull request #576 from kamronbatman/patch-1
[Cleanup] Typo in context.go
2016-04-02 20:47:18 +02:00
Kamron Batman
70c104e16c [Cleanup] Typo in context.go
Fixes typo from 'If Parses' to 'It parses'
2016-04-01 16:29:28 -07:00
Christian Persson
61729ed6fa Fix typos and improve wording 2016-04-01 09:58:58 +02:00
Andrey Nering
f3ff8f827c Refactor GetQuery and GetPostForm 2016-03-29 21:54:21 -03:00
Andrey Nering
9366e33ffc Implement QueryArray and PostArray methods 2016-03-29 21:48:50 -03:00
Javier Provecho Fernandez
4a6bc4aac4 Merge pull request #562 from appleboy/patch-3
Add upload file example
2016-03-14 12:55:50 +01:00
Javier Provecho Fernandez
a7d3be5b8a Merge pull request #557 from AlbinOS/patch-1
Fix typo on gin_test.go
2016-03-14 12:51:43 +01:00
Javier Provecho Fernandez
2afce84a7c Merge pull request #561 from appleboy/patch-1
Add manners package.
2016-03-14 12:49:18 +01:00
Bo-Yi Wu
d1f7f35d1c Add upload file example 2016-03-14 10:07:55 +08:00
Bo-Yi Wu
38b77a71d9 Add manners package. 2016-03-14 09:11:59 +08:00
Albin Gilles
1f2e53dfd1 Fix typo on gin_test.go
Fixes #550, change a duplicate assert on the Path of the route by an assert on Handler name associated with the route.
2016-03-09 08:29:01 +01:00
Javier Provecho Fernandez
31e4401f01 Merge pull request #556 from mpuncel/mpuncel/fix-godoc-handlername
fix typo in godoc for func (*Context) HandlerName
2016-03-08 10:27:37 +01:00
Michael Puncel
7171b967a3 s/currect/current 2016-03-07 21:56:46 -08:00
Michael Puncel
13565e1bf5 fix typo in godoc for func (*Context) HandlerName 2016-03-07 20:54:10 -08:00
Javier Provecho
7cdebae482 Merge branch 'bigwheel-topic-add-test-using-httptest' into develop 2016-03-05 23:32:40 +01:00
Javier Provecho
787aa6d170 Merge branch 'topic-add-test-using-httptest' of https://github.com/bigwheel/gin into bigwheel-topic-add-test-using-httptest 2016-03-05 23:31:31 +01:00
Javier Provecho Fernandez
288d1ae13c Merge branch 'ishanray-patch-1' into develop 2016-03-05 23:11:51 +01:00
Javier Provecho Fernandez
6b9311cd5d Merge branch 'patch-1' of https://github.com/ishanray/gin into ishanray-patch-1 2016-03-05 23:11:28 +01:00
ishanray
19f77bdd4c Update README.md 2016-03-05 02:27:19 +04:00