Commit Graph

1293 Commits

Author SHA1 Message Date
stackerzzq
bc538849eb Update readme for adding tag example of binding time field (#1080) 2017-08-24 20:06:13 -05:00
田欧
c25254f563 reduce go cyclo (#1076)
* reduce go cyclo

* use := var
2017-08-24 20:00:49 -05:00
Eason Lin
80152ac82c doc(readme): update writing logs section wording. (#1074)
* doc(readme): update writing logs section wording.

* doc(readme): update writing logs section wording.

* doc(readme): fix word formatting
2017-08-23 21:50:31 -05:00
田欧
8be30bd382 Update readme for showing output log to file (#1073)
* Update readme for showing output log to file

* update indent
2017-08-22 13:55:32 +08:00
田欧
f4c9ac17a4 not display color when set disableColor (#1072) 2017-08-22 10:27:28 +08:00
Eason Lin
3856206bd0 doc(readme): add additional middleware doc. (#1056) 2017-08-17 12:18:50 +08:00
田欧
a8fa424ae5 update comment (#1057) 2017-08-16 11:55:50 +08:00
keke
ecae34c4e1 fix 200 to http.Status (#1067) 2017-08-16 09:50:43 +08:00
田欧
52c2ed34b3 log format (#1060) 2017-08-14 14:34:29 +08:00
田欧
25d20a4463 merge args if it have same type (#1059) 2017-08-14 12:21:05 +08:00
Eason Lin
4b5ec517da fix(test): only check Location header (#1064)
* fix(test): only check Location header

* fix(test): rename field

* fix(test): not export field
2017-08-14 11:02:31 +08:00
Eason Lin
81007d2ce0 refactor(test): unify assert.Equal usage (#1054) 2017-08-04 13:45:59 +08:00
Eason Lin
4b54b86272 fix composite literal uses unkeyed fields warnings, #1050 (#1051) 2017-08-02 23:00:10 +08:00
Eason Lin
df37e74fa1 doc(context): more clearer bind doc when input is not valid (#1049) 2017-08-01 12:49:28 +08:00
Eason Lin
7fafb3f4a1 doc(context): add status func comment. (#1042) 2017-07-28 08:50:58 +08:00
田欧
d39ed41ab3 update template example (#1038)
* update template example

* add template example folder
2017-07-20 21:29:23 -05:00
田欧
7b508186dd style: remove optional return (#1036) 2017-07-19 14:49:18 +02:00
Eason Lin
c19aa0598b feat(context): add BindQuery func (#1029)
* feat(context): add BindQuery func, only parse/bind the query string params.

* docs(readme): add BindQuery section.

* docs(readme): fix import.

* docs(readme): separate import
2017-07-19 09:50:05 +02:00
Bo-Yi Wu
74221b8a35 docs(benchmark): update benchmark data (#1035)
* feat(Benchmark): update benchmark data

* fix format.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* docs(benchmarks): re indent column, feature gin

* docs(benchmark): fix newline on vm details

* docs(readme): beautify bench table, explain result
2017-07-19 09:40:05 +02:00
Bo-Yi Wu
88566b928c chore(vendor): update jsoniter package (#1033) 2017-07-18 23:06:14 +02:00
Bo-Yi Wu
ce670a6497 refactor(json): make jsonite optional with build tags (#1026)
* refactor(json): Restore gin support for app engine

Create new folder to support multiple json package.
restore gin support for app engine (disable jsonite through tags)

use jsoniter

$ go build -tags=jsoniter .

use default json

$ go build .

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* rename json file.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* docs(json): add build tags document.

* fix(docs): markdown format.

* fix(json): missing space.
2017-07-18 23:01:29 +02:00
田欧
7180f2ba62 not use tmp var (#1032) 2017-07-17 22:39:39 -05:00
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