Need suggestions for libraries for building a rest service

polaris · · 167 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>Hey everyone, Any suggestions on which go libraries to use for building a rest service ? I&#39;m looking for something that&#39;s to the point and that helps me focus on my business logic. I&#39;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="" rel="nofollow"></a> (or gorilla/mux) to give you just enough sugar on top of net/http. I bet you&#39;ll spend more time with a &#34;framework&#34; 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&#39;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&#39;s a bit of a pain to get any contributors since they have no clue how to use it and it&#39;s also harder to set up. I&#39;ll be looking for a simpler framework for my next major release.</p></pre>zpatrick319: <pre><p>I wrote <a href="" rel="nofollow"></a> to help me quickly write rest services for work/personal use. I usually copy the <a href="" 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群:701969077

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