Good open source golang rest api project using mysql for study?

agolangf · · 1184 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<hr/>**评论:**<br/><br/>Glats: <pre><p>I recommend you <a href="https://echo.labstack.com/" rel="nofollow">https://echo.labstack.com/</a></p></pre>keviswang: <pre><p>echo is great, how to connect with mysql, write raw sql query?</p></pre>titpetric: <pre><p>You should use <a href="https://github.com/jmoiron/sqlx" rel="nofollow">sqlx</a> for that.</p> <p>This would be a <a href="https://github.com/titpetric/books/blob/master/api-foundations/chapter6b/main_sqlx.go" rel="nofollow">short example of using sqlx to query a mysql database</a> from my book <a href="https://leanpub.com/api-foundations" rel="nofollow">API Foundations in Go</a>. You can check other samples from the book in the github repo.</p></pre>twek: <pre><blockquote> <p><a href="https://echo.labstack.com/" rel="nofollow">https://echo.labstack.com/</a></p> </blockquote> <p>Does it not bug you the router doesn&#39;t use http.HandlerFunc?</p></pre>keviswang: <pre><p>I am new to golang, wonder how to program api in golang with myql. I have seen some small sample, but maybe not useful in practice.</p></pre>

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

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