Choosing API framework and ORM for Golang beginner

blov · · 238 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>I&#39;m trying to find an API framework and ORM to use for a project I&#39;m building. I started using Iris but came across a blog post calling it a toxic framework. The blog post suggested Mux and also pointed out that several people are happy with Chi and Echo.</p> <p>I&#39;ve seen on this subreddit that people do like Chi, but thought I&#39;d ask since opinions on web technologies are frequently changing.</p> <p>Which of these frameworks(Mux, Chi, Echo) is the most popular/best? What are the pros and cons of each?</p> <p>Bonus question: what should I use for an ORM? I plan on using PostgreSQL for my database.</p> <hr/>**评论:**<br/><br/>ord32: <pre><p>I don&#39;t use an API framework in go, standard library has everything you need for developing an API server. ORM: <a href="" rel="nofollow"></a></p></pre>srxf: <pre><p>It&#39;s always better to start with the standard library because it gives you chance to learn the language. Please see <a href="" rel="nofollow">this</a> blog.</p> <p>At first, I also wanted to use a web framework, but as others say, stick with the bare metal until you get a good understanding of the language. </p> <p>But if you really are into web framework, then you might wanna try <a href="" rel="nofollow">Echo</a>.</p> <p>Oh, and about the ORM, since you&#39;re going to use PostgreSQL, then you might wanna check out <a href="" rel="nofollow">go-pg/pg</a>. It&#39;s focused on PostgreSQL.</p></pre>joncalhoun: <pre><p>Check out go buffalo as well just to see what is out there, but as others have said I suggest learning most of the Std lib a bit then branching out. Gives you a sense of what is possible without learning a third party api</p></pre>

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

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