How to choose golang web mvc framework
为情所困
为情所困 2017-05-16 17:05:22
0
10
835

Need to use golang for backend management of WeChat public account

为情所困
为情所困

reply all(10)
洪涛

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:

  1. Develop projects that the company is tight on time. Consider using beego

  2. 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)

phpcn_u1582

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~

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template