Using GoLand, fairly new to Go, where do I set the GOPATH?

xuanbao · · 481 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>There are two GOPATH variables for a project, one is Global and the other is Project. Where do I set those variables?</p> <hr/>**评论:**<br/><br/>dlsniper: <pre><p>If you need to set the GOPATH, then go to Settings | Go | GOPATH.</p> <p>There are a few options:</p> <ul> <li><p>Global GOPATH: this allows you to configure a GOPATH (which can have multiple values, of course) for all the projects you are using the IDE with. You&#39;ll configure it once and reuse it across the projects</p></li> <li><p>Project GOPATH: has the same properties as the Global GOPATH but this one applies only to the current project. This means you can configure different GOPATH values for different projects.</p></li> </ul> <p>To configure them, simply click on the green <code>+</code> button on the right side of the configuration panel.</p></pre>dev_andy: <pre><p>I’m unaware that there’s two paths to set, for “Global” and “Projects.” If by “Global” you mean $GOPATH then stick with the defaults. Your projects will reside under $GOPATH/src — the official docs cover this.</p></pre>

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

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