I think you must first clarify your strong needs before you can truly make purposeful technology selection. Typical issues in web development, routing, caching, middleware, cookies, sessions, templates, etc., which ones do you need? Yes, let’s see if this framework provides it.
I compared beego and go-macaron. Both projects were written by Chinese people. At first, I saw an article that criticized beego’s code for being of low quality and inelegant. So I chose go-macaron from the beginning. The biggest reason for choosing it was that the grafana project used it. I felt that grafana also chose this, so it shouldn’t be any worse. After using it for a while, I didn't find any major problems. Suddenly one day I wanted to use swagger to do documentation. I found that go-macaron has no existing integration, and found that beego does. So I took a closer look. I found that beego does a good job in engineering. Basically everything you want is available.
So my suggestion is:
Develop projects that the company is tight on time. Consider using beego
Play by yourself and want to learn well. You can use go-macaron
A frame that is too heavy is not recommended, the frame generally includes
router, if you feel that the standard library net/http is not easy to use, you can try to use ithttprouter, it is said to be much faster than the standard library
middleware, you can try to write it yourself, the gin framework comes with middleware
controller, this does not require components, you can write it yourself
model, when it comes to databases, just choose one yourself, google a lot
(Of course, this is the general mode of front-end and back-end separation and back-end interface. After all, mvc is not very popular now)
Amway’s framework, thinkgo, is written by Henry Lee, who wrote Pholcus. The framework is not big, but it does not require reinventing the wheel, and the performance is not bad. The only drawback is that the documentation is incomplete, but + QQ group or the author’s QQ, he will I am very patient to help you solve the problem. Here is the link to the thinkgo entrance
I have only used beego, if there is no other better choice, you can use it.
Gin is recommended
20 years old, using epee, caring about everything, practicing beego
30 years old, using a light sword to pursue speed and lightness Iris
I think you must first clarify your strong needs before you can truly make purposeful technology selection. Typical issues in web development, routing, caching, middleware, cookies, sessions, templates, etc., which ones do you need? Yes, let’s see if this framework provides it.
I compared beego and go-macaron. Both projects were written by Chinese people. At first, I saw an article that criticized beego’s code for being of low quality and inelegant. So I chose go-macaron from the beginning. The biggest reason for choosing it was that the grafana project used it. I felt that grafana also chose this, so it shouldn’t be any worse. After using it for a while, I didn't find any major problems. Suddenly one day I wanted to use swagger to do documentation. I found that go-macaron has no existing integration, and found that beego does. So I took a closer look. I found that beego does a good job in engineering. Basically everything you want is available.
So my suggestion is:
Develop projects that the company is tight on time. Consider using beego
Play by yourself and want to learn well. You can use go-macaron
A frame that is too heavy is not recommended, the frame generally includes
router, if you feel that the standard library net/http is not easy to use, you can try to use it
httprouter
, it is said to be much faster than the standard librarymiddleware, you can try to write it yourself, the gin framework comes with middleware
controller, this does not require components, you can write it yourself
model, when it comes to databases, just choose one yourself, google a lot
Amway’s framework, thinkgo, is written by Henry Lee, who wrote Pholcus. The framework is not big, but it does not require reinventing the wheel, and the performance is not bad. The only drawback is that the documentation is incomplete, but + QQ group or the author’s QQ, he will I am very patient to help you solve the problem. Here is the link to the thinkgo entrance
revel is good
beego is very convenient, revel seems to be very popular, I have never used the others
Gin feels more streamlined. I’m watching beego now, and I feel like I don’t have to write anything myself~