Commit Graph

306 Commits

Author SHA1 Message Date
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
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
田欧 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
田欧 6653d5d588 fix markdown render (#1149) 2017-10-29 21:38:38 -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
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
Daniel M. Lambea c9b344118f Moved const 'defaultMemory' to attrib. Engine.MaxMultipartMemory instead. (#1100) 2017-09-07 11:45:16 +08: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
stackerzzq bc538849eb Update readme for adding tag example of binding time field (#1080) 2017-08-24 20:06:13 -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
Eason Lin 3856206bd0 doc(readme): add additional middleware doc. (#1056) 2017-08-17 12:18:50 +08:00
田欧 d39ed41ab3 update template example (#1038)
* update template example

* add template example folder
2017-07-20 21:29:23 -05: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 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
Eason Lin 30cfa590bb dos(upload): fix alignment (#1030) 2017-07-17 20:23:10 -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 df3b79e805 docs(readme): add binding html checkbox example, close #129 (#994) 2017-07-09 11:02:44 +02:00
Eason Lin bf9758ca05 Add SecureJSON doc 2017-07-09 01:54:43 +08:00
Eason Lin b060a5f409 docs(readme): fix code link (#989) 2017-07-08 03:16:59 -05:00
Javier Provecho Fernandez 0c3726b206 docs(readme): remove logo, relink it to gin-gonic/logo 2017-07-07 09:21:44 +02: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
Javier Provecho Fernandez e4fd80c627 docs(readme): add sections to template docs 2017-07-05 16:22:58 +02:00
田欧 22fc0284e3 update readme (#976) 2017-07-04 21:42:56 -05:00
Bo-Yi Wu f0b54a3023 fix: update autotls example. (#965) 2017-07-03 00:55:21 -05:00
Javier Provecho Fernandez de1fdfd1e5 docs(readme): fix embedmd build 2017-07-02 16:34:52 +02:00
Javier Provecho Fernandez 912a7df572 docs(readme): fix step in vendor tool example 2017-07-02 16:28:37 +02:00
Javier Provecho Fernandez 84fc31f9f8 docs(readme): move contribution guide to a separate file 2017-07-02 14:35:10 +02:00
Javier Provecho Fernandez 5ce686113b docs(readme): add example on using vendor tool for version lock 2017-07-02 12:46:36 +02:00
Javier Provecho Fernandez 55dd6364cb docs(readme): update to color logo 2017-07-02 12:23:54 +02:00
Javier Provecho Fernandez 0cbf0f48aa docs(readme): update contribution guide
- change new prs base branch from develop to master
2017-07-02 11:58:19 +02:00
Javier Provecho Fernandez 2535b46bab docs(readme): add template func maps example
copied from gin_test.go @appleboy commit
2017-07-02 11:07:22 +02:00
Javier Provecho Fernandez 544b8b4dc8 docs(readme): switch deprecated bindwith for mustbindwith 2017-06-28 00:53:28 +02:00
Javier Provecho Fernandez cbf414d600 docs(readme): add example on custom delims #860 2017-06-28 00:45:18 +02:00
Javier Provecho Fernandez dc016d0bcb docs(readme): s/gopkg.in.../github.com.../ 2017-06-27 23:16:18 +02:00
Javier Provecho Fernandez 0b3f6d13be docs(readme): switch back import from gopkg to github 2017-06-27 23:03:29 +02:00
Javier Provecho Fernandez d7ab0da647 Merge branch 'master' into develop 2017-06-27 22:39:09 +02:00
Manu MA d5b353c5d5 Update README.md
Github does not render README correctly, missing whitespaces
2017-04-28 12:59:23 +02:00
Bo-Yi Wu f8520b83f9 update
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-04-17 13:41:47 +08:00
Bo-Yi Wu 6bdc9afc8f fix readme format (#837)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-03-16 10:54:00 -05:00
Bo-Yi Wu b8be9df642 docs: add graceful-shutdown example for go 1.8 (#835)
* docs: add graceful-shutdown example for go 1.8

* fix testing

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-03-16 10:38:30 -05:00
Rohan Pai b2d7e35a60 Added Sourcegraph badge 2017-03-01 12:51:13 -08:00
Manu MA a47a8ca6e7 docs(README): fixes the markdown code format 2017-02-26 20:03:05 +01:00
Bo-Yi Wu 8191cdf5d6 docs: update readme for multiple template package. (#786) 2017-01-05 12:22:32 +08:00
Javier Provecho Fernandez 050937dab8 Improve "Upload file" example, Fix MD typos 2017-01-03 17:04:29 +01:00
Bo-Yi Wu 17af53a565 add upload file example.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-01-03 11:50:35 +08:00
Bo-Yi Wu 6596aa3b71 [ci skip] update readme for upload file.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-01-03 10:34:27 +08:00
Bo-Yi Wu aa1a2b75fa Add comment for the logic behind func.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-01-02 18:01:25 +08:00
Bo-Yi Wu ff17a8dd75 Merge pull request #772 from gin-gonic/patch-3
Improve document for #742
2017-01-02 10:50:13 +08:00
Javier Provecho Fernandez 713c3697f4 Add instructions for pulling latest changes 2017-01-01 11:54:37 +01:00
Bo-Yi Wu 93e36404a1 Improve document for #742
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-12-23 09:12:13 +08:00
Bo-Yi Wu d158ef2e82 Support disable console color.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-12-21 14:41:47 +08:00
Javier Provecho Fernandez c9954730ea Merge pull request #637 from tatsuyafw/remove-obsolete-func
Remove an obsolete func in README
2016-12-05 10:47:24 +01:00
Javier Provecho Fernandez 32cab500ec v1.1 (#751)
* Implement QueryArray and PostArray methods

* Refactor GetQuery and GetPostForm

* Removed additional Iota

I think assigning iota to each constant is not required

* Add 1.7 test.

* Add codecov.io

* corrected a typo in README

* remove coveralls services.

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

* Update TravisCI to Gitter webhook

* Add codecov.yml Gitter webhook

* Changed imports to gopkg instead of github in README (#733)

* Add contribution guide

* 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.

* Changed imports to gopkg instead of github in README

* Update README.md

* Logger: skip ANSI color commands if output is not a tty
2016-12-03 10:10:40 +01:00
Pablo Moncada 9177f01c28 Changed imports to gopkg instead of github in README (#733)
* Add contribution guide

* 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.

* Changed imports to gopkg instead of github in README

* Update README.md
2016-11-08 18:38:28 +01:00
Bo-Yi Wu 504b119742 remove coveralls services.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-10-28 23:18:24 +08:00
mehdy 5c3c9c4f8c corrected a typo in README 2016-10-28 17:32:10 +03:30
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
Tatsuya Hoshino 8464b14974 Remove an obsolete func in README 2016-06-08 07:44:56 +09: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
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 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
Christian Persson 61729ed6fa Fix typos and improve wording 2016-04-01 09:58:58 +02: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
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
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
Javier Provecho Fernandez cbf43049fe Explain better the `net/http` note. 2016-02-24 19:02:39 +01:00
Roman Belyakovsky 8b649abbf5 Added note for net/http import and fixed numbering in readme 2016-02-24 17:02:40 +03:00
Justin Mayhew 701989d26e Fix README mistake 2016-02-17 21:45:37 -04:00
Manu Mtz.-Almeida 27f912f5b2 README little fixes 2016-01-30 01:34:20 +01:00
Manu Mtz.-Almeida 3e56f79fba Coherent example code in README 2016-01-30 01:32:46 +01:00
Manu Mtz.-Almeida 3d002e3823 Updates read 2016-01-30 01:28:57 +01:00
Manu Mtz.-Almeida c1e660dd1a Adds logo to README 2016-01-27 03:37:24 +01:00
Manu Mtz.-Almeida e9531e5c76 Merge branch 'master' into develop 2016-01-26 20:08:28 +01:00
Manu Mtz.-Almeida 3368e6525b Merge pull request #481 from netroby/pr/graceful
Add document about graceful restart or stop
2016-01-26 20:03:54 +01:00
Josh Horowitz c5c806d22d Fixed typo. join -> john 2016-01-14 15:58:17 -05:00
ZhiFeng Hu 8b000c5a04 Add document about graceful restart or stop
I am looking for a long time , add this document will
help who were looking for graceful restart/stop like me.

Signed-off-by: ZhiFeng Hu <hufeng1987@gmail.com>
2015-11-11 10:27:36 +08:00
Javier Provecho Fernandez 50d9af710b Merge branch 'cxjava-master' into develop
Conflicts:
	README.md
2015-10-02 10:06:02 +02:00
Javier Provecho Fernandez 8a530c026b Merge branch 'master' of https://github.com/cxjava/gin into cxjava-master 2015-10-02 10:02:18 +02:00
Javier Provecho Fernandez 0da4558139 Merge branch 'vinceyuan-master' into develop 2015-10-02 09:58:52 +02:00
Javier Provecho Fernandez 484fec592d Merge branch 'master' of https://github.com/vinceyuan/gin into vinceyuan-master 2015-10-02 09:58:32 +02:00
Javier Provecho Fernandez 02df324cc6 Fix #406, #407 and gofmt all examples 2015-08-17 12:49:28 +02:00
Javier Provecho Fernandez dba1781814 Correct an error in README.md 2015-08-17 12:27:38 +02:00
Manu Mtz-Almeida e8bc8f48e9 Merge branch 'master' into develop
Conflicts:
	README.md
	gin.go
	routergroup.go
2015-08-16 18:38:13 +02:00
Charles e6cd47a004 Correct the query parameter name. 2015-07-13 10:13:26 +08:00
Manu Mtz-Almeida 6efa0628ea Testing logo position 2015-07-11 17:59:16 +02:00
Manu Mtz-Almeida df866a26a3 Testing new positions of logo 2015-07-11 17:56:25 +02:00
Manu Mtz-Almeida 4a8a6213a7 Updates README 2015-07-11 17:53:54 +02:00
Javier Provecho Fernandez b7bdf59e50 Change old benchmark to Git Flavored Markdown Table 2015-07-11 11:43:35 +02:00
Javier Provecho Fernandez 9bab006776 Add logo.jpg 2015-07-10 21:58:20 +02:00
Manu Mtz-Almeida 5f2f8d9cb4 Better documentation 2015-07-05 03:26:30 +02:00
Javier Provecho Fernandez 7c0c427b2d Fix #252 typo (middlewares -> middleware) 2015-07-03 20:12:01 +02:00
Manu Mtz-Almeida 9db3afebc6 Updates README 2015-06-09 22:51:59 +02:00
Manu Mtz-Almeida f199a21486 Updates README 2015-06-04 03:24:28 +02:00
Manu Mtz-Almeida b99f210f06 Updates README 2015-06-04 02:49:14 +02:00
Vince Yuan 7229c488e8 Use plural for template folder name in the example. 2015-06-02 23:12:00 +08:00
Vince Yuan 05da3fa2dc Updated README.md to show how to use templates with same name in different directories. 2015-06-02 23:06:08 +08:00
Manu Mtz-Almeida ce784498b4 Adds benchmarks 2015-06-01 01:39:08 +02:00
Manu Mtz-Almeida 43bcac2031 Updates README 2015-05-31 05:00:47 +02:00
Manu Mtz.-Almeida 5680762712 Merge pull request #305 from JustinBeckwith/patch-1
add querystring parameter example to readme
2015-05-28 03:16:49 +02:00
Maksimov Sergey f06e80799b blank line removed 2015-05-27 09:01:32 +03:00
Maksimov Sergey c7013e4ea2 Fixed "Multipart Form" section in README.md 2015-05-27 08:59:50 +03:00
Justin Beckwith b7253902d0 Update README.md 2015-05-26 08:11:20 -07:00
Justin Beckwith 8d812a2097 Update README.md 2015-05-25 21:19:02 -07:00
Justin Beckwith f8d34ac8b6 Update README.md 2015-05-25 21:17:23 -07:00
Justin Beckwith 3feb5578dd add querystring parameter example to readme 2015-05-25 21:15:52 -07:00
Manu Mtz-Almeida 36fb71ff2f Updates README 2015-05-19 01:19:00 +02:00
Kane Rogers d3302e76c2 Teeny tiny typo fix! 2015-04-30 22:32:50 +10:00
techjanitor bee03fa7b0 Add documentation for using layout files with templates #219 2015-03-08 17:24:23 +01:00
Javier Provecho Fernandez 4e0e7d6e16 Add example from PR #121 2015-03-08 15:50:23 +01:00
Javier Provecho Fernandez e5aefdee40 Reorder README.md example imports 2015-03-08 14:09:13 +01:00
Miki Tebeka 2e47cda749 Using net/http constants instead of numeric values 2015-03-05 08:14:01 +02:00
The Gitter Badger 95230adbcb Added Gitter badge 2015-02-21 11:24:57 +00:00
Rogier Lommers 61ef0bea4a Update README.md 2015-02-15 14:04:44 +01:00
杰哥 d806d7a600 wrong spell
change similate to simulate
2015-02-12 14:29:11 +08:00
Javier Provecho Fernandez 66b6eecec6 Merge pull request #215 from el3ctro-/develop
Fix typo in README.md
2015-02-10 09:48:01 +01:00
Javier Provecho Fernandez fb58dc7491 Merge pull request #214 from rns/patch-1
Fix typo in README.md
2015-02-10 09:46:58 +01:00
Joshua Loper 63503bf682 Fixes a minor typo, changes 'Listen and server on 0.0.0.0:8080' to 'Listen and serve on 0.0.0.0:8080' 2015-02-08 14:43:41 -06:00
rns d852d334f4 Update README.md
typo fix
2015-02-08 21:50:44 +02:00
Ray Rodriguez 0b80e09204 Fixing typo in Form parameters example 2015-02-07 23:07:06 -05:00
Javier Provecho Fernandez b1758d3bfa Merge branch 'master' into develop 2015-02-07 15:04:24 +01:00
Javier Provecho Fernandez 171efe228d Merge branch 'develop' of git://github.com/superalsrk/gin into superalsrk-develop
Conflicts:
	Godeps/Godeps.json
2015-02-07 14:29:37 +01:00
Robert Wilkinson 651305c0f5 Update README.md 2015-02-06 09:14:12 -08:00
Javier Provecho Fernandez 713068594c Update README.md
- Reorganize roadmap for v1.0, done in the bottom, to do at top.
- Added request for #155, swagger support.
2015-02-04 23:00:51 +01:00
Javier Provecho Fernandez 5cfe2c56dd Merge branch 'develop' | Update AUTHORS and CHANGELOG 2015-02-04 14:37:21 +01:00
Javier Provecho Fernandez d936320e0e Sync master into develop
- Add 265faff4ba
- Update "github.com/julienschmidt/httprouter" version in Godeps
- Add 28b9ff9e34
2015-02-04 12:56:19 +01:00
SRK.Lyu d2c3699957 Update httprouter version and edit readme about the named parameters 2015-01-31 20:09:44 +08:00
Javier Provecho Fernandez 2d1291329a Fix #191 outdated documentation 2015-01-05 16:15:42 +01:00
Javier Provecho Fernandez c2185a129a Fix some examples in README.md 2015-01-01 17:19:50 +01:00
Javier Provecho Fernandez c8dedf7f39 Merge pull request #168 from dutchcoders/develop
Updated to use SetHTMLTemplate()
2014-12-29 13:03:03 +01:00
Javier Provecho Fernandez 265faff4ba Merge pull request #46 from dickeyxxx/readme/not-found
added example on using ServeFiles
2014-12-29 12:38:34 +01:00
Javier Provecho Fernandez 613d17fd3d Merge pull request #144 from javierprovecho/develop
Add attribution from httprouter
2014-12-29 12:25:50 +01:00
Remco af9a6bcb4d Fixed typo 2014-12-02 15:39:24 +01:00
Remco b8ab9554dc Updated to use SetHTMLTemplate() 2014-12-02 15:28:38 +01:00
Javier Provecho Fernandez bd1b400861 Add attribution from httprouter 2014-11-02 12:23:31 +01:00
Kel Cecil eaefeeb0fd Fix HTML form binding example typo 2014-10-27 20:46:23 -04:00
Manu Mtz-Almeida 0808f8a824 Adds logger source code 2014-09-13 20:37:27 +02:00
Manu Mtz.-Almeida 6fcc0a5b1d Updates logger screenshot 2014-09-13 20:26:47 +02:00