search

Home  >  Q&A  >  body text

How to choose golang web mvc framework

Need to use golang for backend management of WeChat public account

为情所困为情所困2756 days ago839

reply all(10)I'll reply

  • PHP中文网

    PHP中文网2017-05-16 17:07:22

    I have only used beego, if there is no other better choice, you can use it.

    reply
    0
  • 淡淡烟草味

    淡淡烟草味2017-05-16 17:07:22

    Gin is recommended

    reply
    0
  • PHP中文网

    PHP中文网2017-05-16 17:07:22

    20 years old, using epee, caring about everything, practicing beego

    30 years old, using a light sword to pursue speed and lightness Iris

    reply
    0
  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-05-16 17:07:22

    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.

    reply
    0
  • PHP中文网

    PHP中文网2017-05-16 17:07:22

    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

    reply
    0
  • 仅有的幸福

    仅有的幸福2017-05-16 17:07:22

    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)

    reply
    0
  • phpcn_u1582

    phpcn_u15822017-05-16 17:07:22

    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

    reply
    0
  • 怪我咯

    怪我咯2017-05-16 17:07:22

    revel is good

    reply
    0
  • 世界只因有你

    世界只因有你2017-05-16 17:07:22

    beego is very convenient, revel seems to be very popular, I have never used the others

    reply
    0
  • 我想大声告诉你

    我想大声告诉你2017-05-16 17:07:22

    Gin feels more streamlined. I’m watching beego now, and I feel like I don’t have to write anything myself~

    reply
    0
  • Cancelreply