Eason Lin
30cfa590bb
dos(upload): fix alignment ( #1030 )
2017-07-17 20:23:10 -05:00
田欧
199bbf2ae5
refactor(gin): use return not use else for reducing indent ( #1031 )
2017-07-17 20:11:53 -05:00
田欧
b539606eed
use return not use else ( #1028 )
2017-07-17 19:54:38 -05:00
Eason Lin
8f861946b0
style(msgpack): remove redundant comments ( #1027 )
2017-07-17 05:57:59 -05:00
Javier Provecho Fernandez
8678b3df96
docs(readme): add reference to validator.v8 docs, close #738 ( #1024 )
2017-07-16 19:50:45 -05:00
Eason Lin
93b3a0d7ec
feat(context): add SaveUploadedFile func. ( #1022 )
...
* feat(context): add SaveUploadedFile func.
* feat(context): update multiple upload examples.
* style(example): fix gofmt
* fix(example): add missing return
2017-07-15 22:42:08 -05:00
Eason Lin
5cb25a6410
docs(readme): fix multiple file example ( #1018 )
2017-07-14 12:28:16 -05:00
Javier Provecho Fernandez
fe4d405108
docs(readme): fix single file example ( #1017 )
...
issue discovered by @sgon00 at gitter
2017-07-14 11:52:16 -05:00
Javier Provecho Fernandez
65a6dd46a5
chore(vendor): update jsonite rev, #1010 ( #1012 )
2017-07-12 06:02:00 -05:00
Bo-Yi Wu
986049d24c
chore(vendor): upgrade jsonite rev ( #1011 )
...
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-07-12 11:26:58 +02:00
田欧
bbd4dfee50
add warning using http2 example ( #1009 )
2017-07-12 02:01:46 -05:00
田欧
aa6d2d29f8
refactor(doc): use space not tab ( #1006 )
2017-07-11 10:28:08 -05:00
Eason Lin
02a6f9b6bc
chore(vendor): update json-iterator revison to fix TestRenderIndentedJSON failed ( #1003 )
...
* update json-iterator revison to fix TestRenderIndentedJSON failed
* fix(test): add space between key and value as same as standard JSON.
* fix(test): add space between key and value as same as standard JSON.
2017-07-11 00:59:03 -05:00
田欧
87fdff8f88
[docs] add http2 example ( #1000 )
2017-07-10 20:03:09 -05:00
田欧
44da058aa0
add favicon example ( #1001 )
2017-07-10 09:21:42 -05:00
Bo-Yi Wu
e31cbdf241
feat(logger): show query string in logger. ( #999 ) close #988
...
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-07-10 10:41:20 +02:00
whirosan
fb7448f081
feat(binding): add UseNumber() in gin.Context.BindJSON() ( #997 ) close #368
...
* resolve #368 add option to UseNumber() in gin.Context.BindJSON()
* add test
2017-07-10 10:33:35 +02:00
Javier Provecho Fernandez
b6256dbe0c
chore(vendor): update jsonite rev, close #991 ( #992 )
2017-07-10 01:57:09 -05:00
Eason Lin
8436a9d829
fix(render): remove repeated static check. ( #998 )
2017-07-10 01:45:19 -05:00
Javier Provecho Fernandez
df3b79e805
docs(readme): add binding html checkbox example, close #129 ( #994 )
2017-07-09 11:02:44 +02:00
Javier Provecho Fernandez
e8187ddf14
Merge pull request #993 from easonlin404/docs
...
Add SecureJSON doc
2017-07-08 20:51:48 +02:00
Eason Lin
bf9758ca05
Add SecureJSON doc
2017-07-09 01:54:43 +08:00
Javier Provecho Fernandez
e38955615a
Merge pull request #520 from 178inaba/travis-import_path
2017-07-08 19:30:20 +02:00
Javier Provecho Fernandez
ad087650e9
Merge pull request #990 from appleboy/json
...
feat: change json lib to jsoniter
2017-07-08 12:31:44 +02:00
Bo-Yi Wu
e23842ecab
fix json sort the map keys
...
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-07-08 18:19:09 +08:00
Bo-Yi Wu
cb524fc94e
fix testing
...
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-07-08 17:11:28 +08:00
Bo-Yi Wu
08338eff82
fix testing
...
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-07-08 17:03:14 +08:00
Bo-Yi Wu
12508320c2
feat: change json lib to jsoniter
...
A high-performance 100% compatible drop-in replacement of "encoding/json"
https://github.com/json-iterator/go
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-07-08 16:51:36 +08:00
Javier Provecho Fernandez
c4249f923f
Merge pull request #987 from easonlin404/secure-json
...
feat(render): add SecureJSON func to prevent json hijacking
2017-07-08 10:41:41 +02:00
Eason Lin
b060a5f409
docs(readme): fix code link ( #989 )
2017-07-08 03:16:59 -05:00
Eason Lin
75ed286c60
feat: add SecureJSON func to prevent json hijacking
2017-07-08 01:21:30 +08:00
Javier Provecho Fernandez
0c3726b206
docs(readme): remove logo, relink it to gin-gonic/logo
2017-07-07 09:21:44 +02:00
Eason Lin
7eb943e70a
Use single line ( #985 )
2017-07-06 19:43:47 -05:00
田欧
e0fd6238d3
use comma ok and use single line ( #984 )
2017-07-06 09:49:54 -05:00
田欧
34e972e155
Separate type define ( #983 )
2017-07-06 07:59:27 -05:00
Javier Provecho Fernandez
7387ef60be
docs(readme): add badge for projects who use gin
2017-07-06 08:53:48 +02:00
Javier Provecho Fernandez
ff5788bfdd
docs(readme): upload full size logo
2017-07-06 08:41:27 +02:00
Eason Lin
436d8e2af9
Improve serveError code coverage ( #980 )
2017-07-05 20:30:09 -05:00
田欧
b985857899
update func comment ( #981 )
2017-07-05 20:28:16 -05:00
Javier Provecho Fernandez
22ee916dfe
docs(conduct): add code of conduct
2017-07-05 18:25:37 +02:00
Javier Provecho Fernandez
316cb812c3
Merge pull request #978 from thinkerou/add_mode_case
...
add test case of mode
2017-07-05 17:03:03 +02:00
Javier Provecho Fernandez
2521d8246d
Merge pull request #979 from easonlin404/fix-comment
...
fix(comment): remove todo
2017-07-05 17:01:51 +02:00
Javier Provecho Fernandez
42a34cdc35
docs(context): document keys, errors, and accepted, close #488
2017-07-05 16:55:59 +02:00
Eason Lin
71d3ae4f92
fix(comment): remove todo
2017-07-05 22:50:33 +08:00
Javier Provecho Fernandez
e4fd80c627
docs(readme): add sections to template docs
2017-07-05 16:22:58 +02:00
Regner Blok-Andersen
ee7b912a24
Updating IsDebugging docs to remove redudent words. ( #868 )
2017-07-05 09:17:03 -05:00
Javier Provecho Fernandez
e0518111f8
Merge pull request #910 from ammario/develop
...
panic if err is nil on c.Error
2017-07-05 15:26:15 +02:00
thinkerou
f843c33370
add test case of mode
2017-07-05 21:05:02 +08:00
thinkerou
2a36eefcff
add test case of mode
2017-07-05 20:37:28 +08:00
田欧
31ac11a298
update comment method ( #977 )
2017-07-05 04:37:24 -05:00