<p>Is there a way to create a go project in a folder that is not in the gopath?</p>
<hr/>**评论:**<br/><br/>Sythe2o0: <pre><p>If you don't care about it being importable (and thus don't need more than one package), sure.</p></pre>peterbourgon: <pre><p>No.</p></pre>bschwind: <pre><p>The answer isn't "No.", it's "Yes there is a way, but the Go toolchain/ecosystem will fight against it at every turn".</p></pre>BurpsWangy: <pre><p>Some IDEs let you specify project-level environment settings for the go compiler. This is about the closest thing you're going to be able to do to achieve what you're asking.</p></pre>hybsuns: <pre><p>No. If you read the book "The Go Programming Language", you will learn that this is an intentional design to organize all the modules in Go in a structured way.</p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
0 回复
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传