<p>Hey everyone,
Any suggestions on which go libraries to use for building a rest service ?
I'm looking for something that's to the point and that helps me focus on my business logic.
I've played a bit with Goa but looking for other alternatives
Thanks! </p>
<hr/>**评论:**<br/><br/>deusmetallum: <pre><p>Labstack Echo is all right.</p></pre>kpurdon: <pre><p>You really will only need something like <a href="https://github.com/go-chi/chi" rel="nofollow">https://github.com/go-chi/chi</a> (or gorilla/mux) to give you just enough sugar on top of net/http. I bet you'll spend more time with a "framework" like buffalo/gin/echo/goa/gokit/... learning and getting it setup than you will just with a router and net/http.</p></pre>Kraigius: <pre><p>I've been using goa for a year now and yeah it takes some getting used to especially since it have its own language to generate the code. However, it pretty much handle all responses, params, error checking...90% of the stuff that I care about.</p>
<p>It also generate the swagger file which my end users can use to automatically generate a client in the language of their choices.</p>
<p>However, it's a bit of a pain to get any contributors since they have no clue how to use it and it's also harder to set up. I'll be looking for a simpler framework for my next major release.</p></pre>zpatrick319: <pre><p>I wrote <a href="https://github.com/zpatrick/fireball" rel="nofollow">https://github.com/zpatrick/fireball</a> to help me quickly write rest services for work/personal use. I usually copy the <a href="https://github.com/zpatrick/fireball/tree/master/examples/api" rel="nofollow">api example</a> and go from there. </p></pre>tmornini: <pre><p>Standard lib and httprouter fit the bill for our project.</p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传