<p>Hello members of the group have been testing a project of open source problem happens that does not generate me the binary or executable instructions said that entering the project, and put the command go build it I did compile well, there was no problem but not my genre any executable attached it a screenshot hope they can help me thank you for your help and search on google but can not find the solution</p>
<hr/>**评论:**<br/><br/>donniederpo: <pre><p>Sounds like a problem with your gopath - <a href="https://github.com/golang/go/wiki/GOPATH" rel="nofollow">https://github.com/golang/go/wiki/GOPATH</a></p>
<p>Does your hello world example compile and produce an executable on that machine?</p></pre>tdewolff: <pre><p>Do you compile a package with <code>package main</code> defined as the first statement? Or does the project require you to build the binary from a sub directory such as github.com/user/project/cmd/ (instead of github.com/user/project).</p></pre>obito02: <pre><p><a href="http://sia1.subirimagenes.net/img/2015/06/16/15061609174074176.png" rel="nofollow">http://sia1.subirimagenes.net/img/2015/06/16/15061609174074176.png</a></p>
<p>look I'm doing this project of code open but I run the command go build and build install does not generate any error to me and either generates me the binary .exe help please I am rather new to using Goland already read the documentation as I did test the hello example world and there if generates me the binary but this project does not create the binary thanks for your help</p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传