Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: gin-gonic/gin
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.5.0
Choose a base ref
...
head repository: gin-gonic/gin
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.7.3
Choose a head ref

Commits on Nov 24, 2019

  1. fix comment in mode.go (#2129)

    EnableJsonDisallowUnknownFields => EnableJsonDecoderDisallowUnknownFields
    plsmaop authored and thinkerou committed Nov 24, 2019
    Copy the full SHA
    70ca31b View commit details
  2. Drop support go1.10 (#2147)

    thinkerou authored and appleboy committed Nov 24, 2019
    Copy the full SHA
    2ee0e96 View commit details

Commits on Nov 25, 2019

  1. Copy the full SHA
    b52a1a1 View commit details
  2. Copy the full SHA
    3737520 View commit details
  3. upgrade go-validator to v10 (#2149)

    * upgrade go-validator to v10
    
    * fix fmt
    fifsky authored and thinkerou committed Nov 25, 2019
    Copy the full SHA
    e90e2ba View commit details
  4. Copy the full SHA
    3c8e29b View commit details

Commits on Nov 26, 2019

  1. Refactor redirect request in gin.go (#1970)

    * Refactor redirect request in gin.go
    
    * Update http status code
    nsiregar authored and thinkerou committed Nov 26, 2019
    Copy the full SHA
    231ff00 View commit details

Commits on Nov 28, 2019

  1. chore(performance): Improve performance for adding RemoveExtraS… (#2159)

    * chore: Add RemoveExtraSlash flag
    
    * fix testing
    
    Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
    appleboy authored Nov 28, 2019
    Copy the full SHA
    352d69c View commit details
  2. use http method constant (#2155)

    * use http method constant
    
    * fix typo
    thinkerou authored Nov 28, 2019
    Copy the full SHA
    d5f12ac View commit details

Commits on Nov 29, 2019

  1. docs(benchmarks): for gin v1.5 (#2153)

    appleboy authored and thinkerou committed Nov 29, 2019
    Copy the full SHA
    3957f6b View commit details

Commits on Dec 1, 2019

  1. Copy the full SHA
    3abc96e View commit details

Commits on Dec 2, 2019

  1. Add project to README (#2165)

    Add Dkron as user of Gin in the README
    Victor Castell authored and thinkerou committed Dec 2, 2019
    Copy the full SHA
    77b8344 View commit details

Commits on Dec 3, 2019

  1. Copy the full SHA
    7c21e04 View commit details

Commits on Dec 8, 2019

  1. tree: sync httprouter update (#2171)

    thinkerou authored and appleboy committed Dec 8, 2019
    Copy the full SHA
    c654485 View commit details
  2. Copy the full SHA
    6e16da8 View commit details

Commits on Dec 9, 2019

  1. Copy the full SHA
    168fa94 View commit details

Commits on Dec 18, 2019

  1. Fix "Custom Validators" example (#2186)

    * Update fixed error code from merged commit
    
    According to [this](gin-gonic/examples@874dcfa) merged commit.
    
    * Fixed incorrect testing date.
    
    Original testing date incompatible demo require, can't get expect result.
    check_in date need NOT AFTER check_out date.
    mosdeo authored and thinkerou committed Dec 18, 2019
    Copy the full SHA
    aee83e0 View commit details
  2. Copy the full SHA
    d6143d8 View commit details
  3. Update to currently output (#2188)

    Excuse me, I forgot change output in #2186
    mosdeo authored and thinkerou committed Dec 18, 2019
    Copy the full SHA
    1b480ed View commit details

Commits on Dec 19, 2019

  1. Copy the full SHA
    cc14a77 View commit details

Commits on Dec 20, 2019

  1. Update validator to v10 (#2190)

    Passed my manual test, output nothing different.
    mosdeo authored and thinkerou committed Dec 20, 2019
    Copy the full SHA
    9b3477e View commit details

Commits on Dec 30, 2019

  1. Copy the full SHA
    59ab588 View commit details

Commits on Jan 7, 2020

  1. Fix spelling (#2202)

    jbampton authored and thinkerou committed Jan 7, 2020
    Copy the full SHA
    b8a7b6d View commit details
  2. Add build tag nomsgpack (#1852)

    * add build tag nomsgpack
    
    * Update copyright
    
    * Update copyright
    sapk authored and appleboy committed Jan 7, 2020
    Copy the full SHA
    fd8a65b View commit details
  3. Reuse bytes when cleaning the URL paths (#2179)

    * path: use stack buffer in CleanPath to avoid allocs in common case
    
    Sync from julienschmidt/httprouter@8222db1
    
    * path: sync test code from httprouter
    
    * path: update path_test.go to the latest code
    
    Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>
    2 people authored and thinkerou committed Jan 7, 2020
    Copy the full SHA
    025950a View commit details
  4. Update docs on Context.Done(), Context.Deadline() and Context.Err() (#…

    …2196)
    
    Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>
    2 people authored and thinkerou committed Jan 7, 2020
    Copy the full SHA
    424e968 View commit details

Commits on Jan 16, 2020

  1. Copy the full SHA
    ace6e4c View commit details

Commits on Jan 17, 2020

  1. Use zero-copy approach to convert types between string and byte… (#2206)

    * Use zero-copy approach to convert types between string and byte slice
    
    * Rename argument to a eligible one
    
    Benchmark:
    
    BenchmarkBytesConvBytesToStrRaw-4   	21003800	        70.9 ns/op	      96 B/op	       1 allocs/op
    BenchmarkBytesConvBytesToStr-4      	1000000000	         0.333 ns/op	       0 B/op	       0 allocs/op
    BenchmarkBytesConvStrToBytesRaw-4   	18478059	        59.3 ns/op	      96 B/op	       1 allocs/op
    BenchmarkBytesConvStrToBytes-4      	1000000000	         0.373 ns/op	       0 B/op	       0 allocs/op
    
    
    Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>
    panjf2000 and appleboy committed Jan 17, 2020
    Copy the full SHA
    982daeb View commit details

Commits on Jan 20, 2020

  1. Added support for SameSite cookie flag (#1615)

    * Added support for SameSite cookie flag
    
    * fixed tests.
    
    * Update context.go
    
    * Update context_test.go
    
    * Update context_test.go
    
    Co-authored-by: thinkerou <thinkerou@gmail.com>
    Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>
    3 people committed Jan 20, 2020
    Copy the full SHA
    f94406a View commit details

Commits on Jan 21, 2020

  1. Copy the full SHA
    69a202d View commit details

Commits on Jan 22, 2020

  1. Copy the full SHA
    07c0f05 View commit details

Commits on Jan 28, 2020

  1. docs(path): improve comments (#2223)

    * chore(path): improve comments
    
    copy from julienschmidt/httprouter@15782a7
    
    * fix typo
    
    Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
    appleboy authored and thinkerou committed Jan 28, 2020
    Copy the full SHA
    64e6a76 View commit details
  2. tree: remove duplicate assignment (#2222)

    copy from julienschmidt/httprouter@cfa3cb7
    
    Co-authored-by: thinkerou <thinkerou@gmail.com>
    appleboy and thinkerou authored Jan 28, 2020
    Copy the full SHA
    0e4d8ea View commit details

Commits on Feb 6, 2020

  1. add yaml negotitation (#2220)

    Co-authored-by: thinkerou <thinkerou@gmail.com>
    Erik Bender and thinkerou authored Feb 6, 2020
    Copy the full SHA
    731c827 View commit details

Commits on Feb 9, 2020

  1. Copy the full SHA
    acac7b1 View commit details

Commits on Feb 13, 2020

  1. Copy the full SHA
    0d12918 View commit details

Commits on Feb 21, 2020

  1. docs(badge): add todo badge (#2240)

    fix #2236
    
    Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
    appleboy authored Feb 21, 2020
    Copy the full SHA
    863ad2d View commit details
  2. Use json marshall in context json to fix breaking new line issue. Fixes

    #2209 (#2228)
    
    * ignore IntelliJ idea generated files
    
    * update JSON renderer to use Marshall() instead of Encode(). Fix #2209
    
    * Revert "ignore IntelliJ idea generated files"
    
    This reverts commit e7bd017.
    
    Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>
    Co-authored-by: thinkerou <thinkerou@gmail.com>
    3 people authored Feb 21, 2020
    Copy the full SHA
    5f56109 View commit details

Commits on Feb 26, 2020

  1. ci support go1.14 (#2262)

    thinkerou authored Feb 26, 2020
    Copy the full SHA
    094b3fd View commit details

Commits on Mar 7, 2020

  1. Copy the full SHA
    2ff2b19 View commit details
  2. FileFromFS (#2112)

    * Context.FileFromFS added
    
    * Context File and FileFromFS examples at README
    
    Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>
    nikandfor and appleboy authored Mar 7, 2020
    Copy the full SHA
    1d055af View commit details
  3. removing log injection (#2277)

    Co-authored-by: thinkerou <thinkerou@gmail.com>
    Manuel Alonso and thinkerou authored Mar 7, 2020
    Copy the full SHA
    a71af9c View commit details

Commits on Mar 16, 2020

  1. Unix Socket Handling (#2280)

    * do not set unix socket permissions. Cleanup unix socket.
    
    * removed useless error checking
    ryanjyoder authored Mar 16, 2020
    Copy the full SHA
    67008be View commit details
  2. Add mutex for protect Context.Keys map (#1391)

    * Add mutex for protect Context.Keys map
    
    * Fix tests
    
    Co-authored-by: Nikolay Tolkachov <nik.tolkachov@gmail.com>
    Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>
    3 people authored Mar 16, 2020
    Copy the full SHA
    73ccfea View commit details

Commits on Mar 22, 2020

  1. Copy the full SHA
    c4fd248 View commit details
  2. Copy the full SHA
    a412209 View commit details

Commits on Mar 23, 2020

  1. Update version.go (#2293)

    to sync with tag v1.6.0
    piengeng authored Mar 23, 2020
    Copy the full SHA
    ae88831 View commit details
  2. Copy the full SHA
    1bebd9a View commit details
  3. bump to v1.6.1 version (#2295)

    Co-authored-by: thinkerou <thinkerou@gmail.com>
    appleboy and thinkerou authored Mar 23, 2020
    Copy the full SHA
    07a6818 View commit details

Commits on Mar 24, 2020

  1. doc: add pr link (#2298)

    * doc: add pr link
    
    * doc: add v1.6.1 release note
    thinkerou authored Mar 24, 2020
    Copy the full SHA
    bd5ee1a View commit details
Showing with 3,997 additions and 1,979 deletions.
  1. +1 −1 .github/PULL_REQUEST_TEMPLATE.md
  2. +12 −4 .travis.yml
  3. +3 −1 AUTHORS.md
  4. +619 −557 BENCHMARKS.md
  5. +141 −20 CHANGELOG.md
  6. +2 −2 CONTRIBUTING.md
  7. +5 −14 Makefile
  8. +220 −139 README.md
  9. +8 −4 auth.go
  10. +6 −2 binding/binding.go
  11. +58 −0 binding/binding_msgpack_test.go
  12. +112 −0 binding/binding_nomsgpack.go
  13. +122 −42 binding/binding_test.go
  14. +44 −10 binding/default_validator.go
  15. +68 −0 binding/default_validator_test.go
  16. +1 −1 binding/form.go
  17. +45 −3 binding/form_mapping.go
  18. +1 −1 binding/form_mapping_test.go
  19. +9 −0 binding/json_test.go
  20. +3 −0 binding/msgpack.go
  21. +3 −0 binding/msgpack_test.go
  22. +1 −1 binding/validate_test.go
  23. +153 −46 context.go
  24. +3 −2 context_appengine.go
  25. +178 −16 context_test.go
  26. +2 −2 debug.go
  27. +14 −1 debug_test.go
  28. +15 −10 errors.go
  29. +34 −0 errors_1.13_test.go
  30. +3 −3 fs.go
  31. +121 −34 gin.go
  32. +171 −7 gin_integration_test.go
  33. +134 −0 gin_test.go
  34. +253 −253 githubapi_test.go
  35. +6 −10 go.mod
  36. +29 −19 go.sum
  37. +24 −0 internal/bytesconv/bytesconv.go
  38. +99 −0 internal/bytesconv/bytesconv_test.go
  39. +1 −0 internal/json/json.go
  40. +2 −1 internal/json/jsoniter.go
  41. +8 −8 logger.go
  42. +10 −8 logger_test.go
  43. +1 −1 middleware_test.go
  44. +9 −6 mode.go
  45. +42 −15 path.go
  46. +58 −7 path_test.go
  47. +27 −7 recovery.go
  48. +105 −1 recovery_test.go
  49. +13 −11 render/json.go
  50. +7 −0 render/msgpack.go
  51. +3 −0 render/reader.go
  52. +23 −0 render/reader_test.go
  53. +0 −1 render/render.go
  54. +44 −0 render/render_msgpack_test.go
  55. +1 −27 render/render_test.go
  56. +3 −2 render/text.go
  57. +17 −17 routergroup.go
  58. +16 −16 routergroup_test.go
  59. +114 −89 routes_test.go
  60. +528 −348 tree.go
  61. +225 −47 tree_test.go
  62. +10 −8 utils.go
  63. +6 −0 utils_test.go
  64. +0 −153 vendor/vendor.json
  65. +1 −1 version.go
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
- With pull requests:
- Open your pull request against `master`
- Your pull request should have no more than two commits, if not you should squash them.
- It should pass all tests in the available continuous integrations systems such as TravisCI.
- It should pass all tests in the available continuous integration systems such as TravisCI.
- You should add/modify tests to cover your proposed code changes.
- If your pull request contains a new feature, please document it on the README.

16 changes: 12 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -3,12 +3,20 @@ language: go
matrix:
fast_finish: true
include:
- go: 1.10.x
- go: 1.11.x
env: GO111MODULE=on
- go: 1.12.x
env: GO111MODULE=on
- go: 1.13.x
- go: 1.13.x
env:
- TESTTAGS=nomsgpack
- go: 1.14.x
- go: 1.14.x
env:
- TESTTAGS=nomsgpack
- go: 1.15.x
- go: 1.15.x
env:
- TESTTAGS=nomsgpack
- go: master

git:
@@ -18,7 +26,7 @@ before_install:
- if [[ "${GO111MODULE}" = "on" ]]; then mkdir "${HOME}/go"; export GOPATH="${HOME}/go"; fi

install:
- if [[ "${GO111MODULE}" = "on" ]]; then go mod download; else make install; fi
- if [[ "${GO111MODULE}" = "on" ]]; then go mod download; fi
- if [[ "${GO111MODULE}" = "on" ]]; then export PATH="${GOPATH}/bin:${GOROOT}/bin:${PATH}"; fi
- if [[ "${GO111MODULE}" = "on" ]]; then make tools; fi

4 changes: 3 additions & 1 deletion AUTHORS.md
Original file line number Diff line number Diff line change
@@ -156,7 +156,7 @@ People and companies, who have contributed, in alphabetical order.
- Fix variadic parameter in the flexible render API
- Fix Corrupted plain render
- Add Pluggable View Renderer Example


**@msemenistyi (Mykyta Semenistyi)**
- update Readme.md. Add code to String method
@@ -190,6 +190,8 @@ People and companies, who have contributed, in alphabetical order.
**@rogierlommers (Rogier Lommers)**
- Add updated static serve example

**@rw-access (Ross Wolf)**
- Added support to mix exact and param routes

**@se77en (Damon Zhao)**
- Improve color logging
Loading