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.

Comment From: flc1125

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.

Comment From: flc1125

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.

Comment From: thinkerou

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

Comment From: sk-

Would this new version consider having modular dependencies, like proposed in PR 1856?