<p>Hello, please could you take a look at the following Go project and let me know whether this is a good way of structuring my project.
<a href="https://github.com/drum445/vehicleFinder" rel="nofollow">https://github.com/drum445/vehicleFinder</a></p>
<p>I struggle finding the best way to do this as I come from a MVC background, but would like to stick to the repo pattern if it works.</p>
<p>Appreciate it</p>
<hr/>**评论:**<br/><br/>ui7_uy8: <pre><blockquote>
<p>I come from a MVC background</p>
</blockquote>
<p>The first thing I see is that you don't even stick to the basics [1]. There is no need for a src folder or a doc folder [2]</p>
<p>[1] <a href="https://golang.org/doc/code.html" rel="nofollow">https://golang.org/doc/code.html</a></p>
<p>[2] <a href="https://blog.golang.org/godoc-documenting-go-code" rel="nofollow">https://blog.golang.org/godoc-documenting-go-code</a></p>
<p>The real issue is the complete lack of tests.</p></pre>drum445: <pre><p>Thanks but I meant more of the package structure, the doc and src I know can be removed.
Tests will come later, this is simply a structure excersise
Does the separation of packages look correct?</p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传