gin-gonic / gin

Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.
https://gin-gonic.com/
MIT License
76.72k stars 7.91k forks source link

proposal: gin/v2? #3766

Open thinkerou opened 8 months ago

thinkerou commented 8 months ago

based on https://github.com/golang/go/discussions/63397 (encoding/json/v2) and https://github.com/gin-gonic/gin/pull/3391, we uses json/v2, not support third json but open interface and middleware.

flc1125 commented 1 month ago

I recommend adjusting the default branch to 1.x and 2.x, with 1.x being the default branch until 2.x becomes stable.

Updates to the 1.x version can be merged into the 2.x branch, allowing for parallel maintenance of both branches. Of course, we can also set an end-of-maintenance date for 1.x to facilitate the progression of 2.x, and even 3.x.

It seems to me that the future development potential of gin will continue to grow.

I look forward to gin developing even better.

flc1125 commented 1 month ago

Regarding the go mod section, I suggest the following:

Instead of adding a v2 directory on top of the 1.x version.

thinkerou commented 1 month ago

Regarding the go mod section, I suggest the following:

  • 1.x: github.com/gin-gonic/gin
  • 2.x: github.com/gin-gonic/gin/v2

Instead of adding a v2 directory on top of the 1.x version.

yes