What Go framework would you recommend for a web app?

xuanbao · 2016-03-27 18:12:52 · 697 次点击    
这是一个分享于 2016-03-27 18:12:52 的资源,其中的信息可能已经有所发展或是发生改变。

I'm just getting started with Go, and to move past theory into practical zone I want to make a web app that I want eventually to deploy into production. What Go frameworks do people use (that are stable) for web apps in production?

I like how easy http://webgo.io/ seems to be but at the same time it looks like it hasn't been updated since forever.

Anyone using it? Anything else you would recommend?


评论:

mvpmvh:

I think if you do a golang Reddit search for this very question, you will find 50+ prior threads all more or less repeating the same answer: standard library and gorilla toolkit. There are other answers, of course, but most suggest NOT using a framework at all. I have followed this approach as well.

daniels0xff:

How do you deal with sessions, routing, cookies, etc. then? Do you just search for whatever modules are available for that and use that?

mvpmvh:

I personally look for individual modules, yes. Obviously you can do w/e ur most comfortable w. When I first started using go, I chose beego. It seemed to have everything I'd want, but in the end I decided to see what I could build w/out a complete framework, in favor of smaller toolsets and packages. It was a learning exercise that I don't regret.

Ploobers:

Check out http://goa.design/

karnd01:

I'd say the most popular frameworks would be gin, echo and goji.. I have to agree with @mvpmvh, there are many libraries which allow you to create your own framework pretty quickly and easily just Google for the "gorilla" packages; if it helps I've created such a library that will get you going quickly as well, https://github.com/go-playground/lars

In the end try a bunch of them and see which would suite your needs best and go from there

daniels0xff:

I've just found https://go-macaron.com/ and looks really nice.

It seems it's using dependency injection. It this ok? I remember seeing some posts here that the GO community is king of against this? Should I look for something else?

sybrandy:

I like httprouter. It does exactly what I need it to do amd keeps things simple.

jfurmankiewicz:

I use gin and like it a lot. Simple, straightforward, good API. Fast.

Has middleware support if I need it.


入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

697 次点击  
加入收藏 微博
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传