Seeking Advice On Strcuturing A Golang REST API

xuanbao · · 109 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>I&#39;m writing a REST mobile backend in the standard library that uses Postgres (with database/sql). Does anybody have a good recommendation for folder structure?</p> <hr/>**评论:**<br/><br/>fharding: <pre><p>I actually wrote an example project for this a while back! It&#39;s a todo REST API that uses Postgres. I used this same structure on a much bigger project with multiple collaborators and it&#39;s worked well. Let me know if you have any specific questions.</p> <p><a href="" rel="nofollow"></a></p></pre>toorusan: <pre><p>A few that are commonly referenced:</p> <p><a href="" rel="nofollow"></a></p> <p><a href="" rel="nofollow"></a></p> <p><a href="" rel="nofollow"></a></p> <p><a href="" rel="nofollow"></a></p></pre>bxcodec: <pre><p>Try to learn about golang clean architecture, there so many example of it, and each of them is a good example. Just choose the best architecture to fit to your problem</p></pre>
109 次点击  
加入收藏 微博
0 回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传