<p>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?</p>
<p>I like how easy <a href="http://webgo.io/" rel="nofollow">http://webgo.io/</a> seems to be but at the same time it looks like it hasn't been updated since forever.</p>
<p>Anyone using it? Anything else you would recommend?</p>
<hr/>**评论:**<br/><br/>mvpmvh: <pre><p>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.</p></pre>daniels0xff: <pre><p>How do you deal with sessions, routing, cookies, etc. then? Do you just search for whatever modules are available for that and use that?</p></pre>mvpmvh: <pre><p>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.</p></pre>Ploobers: <pre><p>Check out <a href="http://goa.design/" rel="nofollow">http://goa.design/</a></p></pre>karnd01: <pre><p>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, <a href="https://github.com/go-playground/lars" rel="nofollow">https://github.com/go-playground/lars</a></p>
<p>In the end try a bunch of them and see which would suite your needs best and go from there</p></pre>daniels0xff: <pre><p>I've just found <a href="https://go-macaron.com/" rel="nofollow">https://go-macaron.com/</a> and looks really nice. </p>
<p>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?</p></pre>sybrandy: <pre><p>I like httprouter. It does exactly what I need it to do amd keeps things simple.</p></pre>jfurmankiewicz: <pre><p>I use gin and like it a lot. Simple, straightforward, good API. Fast.</p>
<p>Has middleware support if I need it.</p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传