Commit Graph

1390 Commits

Author SHA1 Message Date
田欧
783c7ee9c1 Add some test cases and run test cases on binding/render dir (#1168)
* Travis run test cases on binding and render dir and add some test cases for binding and render
2018-01-26 11:46:11 +08:00
Bo-Yi Wu
2fbb97117c
fix(build): remove unused target. (#1183) 2018-01-24 11:06:42 +08:00
MW Lim
7a9a290b36 minor typo in README.md (#1219) 2018-01-23 10:36:36 +08:00
Kevin Zhu
8a6792d516 Fix README.md example code (#1231)
r -> router
2018-01-23 10:07:33 +08:00
Weilin Shi
a712f77d7a Fix some golint warnings in gin.go (#1215) 2017-12-29 17:10:28 +08:00
Weilin Shi
6626358d4f Fix golint warnings in utils.go (#1209) 2017-12-25 13:58:02 +08:00
Weilin Shi
a816f9e9db Remove redundant if err != nil check (#1202)
* Remove redundant if err != nil check

* Return e.EncodeToken instead of create a new variable
2017-12-21 11:00:17 +08:00
Levi Olson
05547037e4 Minor grammatical correction in README (#1206) 2017-12-21 10:48:11 +08:00
Himanshu Mishra
46662e700b Doc: Fix typo in documentation of Bind (#1204) 2017-12-20 09:32:39 +08:00
田欧
b70b8ab20c use lower if the struct is private (#1185) 2017-12-17 13:02:33 +08:00
TaeJun Park
25e7cd75ed Update README.md (#1188)
change path from '~/go/...' to '$GOPATH/...'
2017-12-17 08:05:30 +08:00
Max Hilbrunner
13a40fcd2c README: Small update to clarify on Goroutines (#1199) 2017-12-17 00:52:07 +08:00
田欧
9e895470dd add deprecated test case (#1176)
* add deprecated test case

* swap assert param

* remove
2017-11-29 16:42:51 +08:00
Boris Borshevsky
6f94fd05c9 Linting and optimizing struct memory signature. (#1184)
* fix cleanPath spell (#969)

* linter and optimize structs
2017-11-29 10:50:14 +08:00
田欧
eeb57848ca update assert param(expect, actual) position (#1177) 2017-11-21 21:18:45 +08:00
田欧
7e5aff8ea7 simple code and increase coverage (#1174) 2017-11-21 10:03:57 +08:00
田欧
1f377cb847 Add test cases for RunTLS and each mode (#1173)
* add RunTLS test cases and add debug/test mode cases

* add release mode cases
2017-11-21 09:27:57 +08:00
Richard Lee
ae9f03e6e8 Fix up syntax error in README (#1155) 2017-11-11 23:56:59 -06:00
Andrii Bubis
80f691159f Added simple testing documentation and examples (#1156) 2017-11-11 23:37:32 -06:00
田欧
9a4ecc87d6 format some codes style (#1165) 2017-11-11 23:24:51 -06:00
田欧
9ae1e5db2a add package for govendor (#1166)
* add package for govendor

* fix vet error.

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

* add missing example.

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

* update gin-gonic/autotls

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-11-11 23:11:22 -06:00
Mike Stipicevic
76ad15ab32 Update comment to reflect correct constant. (#1144)
The constant is `DebugMode`, as defined in [mode.go](1e88466d23/mode.go (L16)).
2017-11-02 08:48:54 -05:00
田欧
6653d5d588 fix markdown render (#1149) 2017-10-29 21:38:38 -05:00
田欧
b7e8a6b9b0 style(import): not use aliase when import package (#1146) 2017-10-29 13:12:22 +01:00
田欧
1e88466d23 Update the comment of Version (#1141) 2017-10-25 21:25:25 -05:00
Suhas Karanth
dfb68ce085 feat(context): ShouldBind counterparts for Bind methods (#1047)
* feat(context): ShouldBind counterparts for Bind methods + tests

* docs(readme): Switch examples to use ShouldBind methods

Add section for bind methods types, explain difference in behavior.
Switch all `c.Bind` examples to use `c.ShouldBind`.
2017-10-23 11:14:09 +02:00
Bo-Yi Wu
b8b68314fa feat: add multiple service example. (#1119) 2017-09-29 16:48:10 +08:00
田欧
0cb7c44abc Print warning log when user create one engine using gin.Default in debug mode (#1121)
* empty string check

* add log when use Default

* fix unit test error

* fix unit test error
2017-09-29 11:58:57 +08:00
田欧
3b300929e8 Empty string check (#1101) 2017-09-29 00:22:35 +08:00
田欧
f7376f7c7f combine var and use tmp var (#1108) 2017-09-28 22:54:37 +08:00
delphinus
a8c53949e5 Support time location on form binding (#1117) 2017-09-28 22:23:18 +08:00
Davor Kapsa
5afc5b1973 travis: add 1.9.x instead 1.9 to go version (#1105)
1.9.x should be working now.
2017-09-11 22:33:19 +08:00
Kristoffer A. Iversen
8c17c680d9 Fixed README.md typo (#1104)
* Fixed README.md typo

* Fixed example typo

* Fixed example typo
2017-09-11 22:17:26 +08:00
田欧
b1ee49de8c fix typo (#1103) 2017-09-08 08:56:56 +08:00
Daniel M. Lambea
c9b344118f Moved const 'defaultMemory' to attrib. Engine.MaxMultipartMemory instead. (#1100) 2017-09-07 11:45:16 +08:00
Eason Lin
848fa41ca0 doc(recovery): add RecoveryWithWriter doc (#1097) 2017-09-05 09:17:53 +08:00
George Kirilenko
cdf26f994b 32 << 10 != 32 Mb (#1094) 2017-09-04 09:15:50 +08:00
Edward Betts
ab50cf9790 correct spelling mistake (#1092) 2017-09-01 22:02:25 +08:00
Eason Lin
c16c2b7ec3 chore(vendor): update jsoniter rev, #1086 (#1090) 2017-08-30 12:18:57 +08:00
Eason Lin
8902826696 doc(context): add cookie doc (#1088) 2017-08-28 21:38:53 +02:00
vz
f1edd2c2d1 fix(ginS): fix undefined ref (#1087) 2017-08-27 11:11:38 +02:00
Suhas Karanth
26c3f42095 feat(binding): add support for custom validator / validation tags (#1068)
* feat(binding): Add support for custom validation tags

* docs: Add example for custom validation tag

* test(binding): Add test for registering custom validation
2017-08-27 09:37:39 +02:00
Bo-Yi Wu
030b1aaf72 chore(ci): replace travis ci go 1.9.x for 1.9 (#1085) 2017-08-26 19:37:19 +02:00
Bo-Yi Wu
211c48f040 refactor: using requestHeader internal func (#1083)
* refactor: using requestHeader internal func.

* update

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-08-26 12:02:47 +02:00
Bo-Yi Wu
fa391a4864 chore(ci): add go 1.9 version (#1082)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-08-26 10:48:56 +02:00
Dan Markham
b9686e91fa Use standard library for retrieving header (#1081) 2017-08-25 23:53:27 -05:00
田欧
18b7c0892d not use dot when import package (#1077) 2017-08-24 20:13:53 -05:00
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