Workspace confusion

xuanbao · · 593 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>The docs say the workspace should look like</p> <pre><code>bin pgk src --project_folder </code></pre> <p>where your project resides in the src folder. But now I&#39;m reading the article on how to build a web app <a href="http://golang.org/doc/articles/wiki/" rel="nofollow">http://golang.org/doc/articles/wiki/</a> and the project folder is placed in the root directory instead</p> <pre><code>bin pgk src project_folder </code></pre> <p>Should I organise my own projects this way? Also what&#39;s the point of putting it in the src if this works (and appears more organised)?</p> <hr/>**评论:**<br/><br/>dgryski: <pre><p>The wiki is not clear. The <code>gowiki</code> directory should be under <code>src</code>. That&#39;s probably worth a bug report.</p></pre>alecthegeek: <pre><p>IMHO:</p> <p>It&#39;s confusing and that wiki page should be updated.</p> <p>In the examples they only use the <code>go build source.go</code> command, not the <code>go install</code> or <code>go build -i</code>. <code>go build --help</code> is your friend.</p> <p>I often use this technique in /tmp to test small code snippets</p></pre>

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

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