Examples of idiomatic Go web applications

polaris · · 450 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>Hello, can you point me to some medium-sized Go web applications that have clean, idiomatic code and good structure?</p> <p>I&#39;m coming from Django world and am trying to figure out how to structure my code in files, when/how to load templates, where to store the db connection pool, etc.</p> <p>I know Revel has the project structure laid out, but I do like the minimalist approach of using standard library and small composable libraries. Just need some good non-toy examples to steal ideas from... Thanks in advance.</p> <hr/>**评论:**<br/><br/>softwaregav: <pre><p>I found <a href="https://github.com/marcusolsson/goddd" rel="nofollow">https://github.com/marcusolsson/goddd</a> to be a pretty good example.</p></pre>cuu508: <pre><p>Thanks, will take a look!</p></pre>xyproto: <pre><p>Shameless plug for a webserver that is written in Go and uses Lua (supports plugins written in Go):</p> <p><a href="https://github.com/xyproto/algernon/tree/master/samples/structure" rel="nofollow">https://github.com/xyproto/algernon/tree/master/samples/structure</a></p></pre>Ingaz: <pre><p>Hmm. Do you really think it&#39;s an idiomatic go application?</p></pre>Tikiatua: <pre><p>Hi there, we developed quite a few medium sized applications. Although we are not yet able to share the code for the services, you may find some good inspiration in our scratch repository, that we use as base for all our applications.</p> <p><a href="https://github.com/dkfbasel/scratch" rel="nofollow">https://github.com/dkfbasel/scratch</a></p></pre>peterbourgon: <pre><p>Packages names should never be camelCased.</p></pre>

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

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