Installing godef

blov · · 6735 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>Hi! I am getting started with go and I have trouble getting godef. The instructions says &#39;go get code.google.com/p/rog-go/exp/cmd/godef&#39;, which fails with 9fans.net not being accessible. I found a 9fans.net github mirror on github, but &#39;go get -v github.com/9fans/go&#39; says no buildable Go source files and fails. Could anyone point me into the right direction? I&#39;m getting a bit frustrated because of the awful outdated documentation I&#39;m finding.</p> <p>Thank you.</p> <hr/>**评论:**<br/><br/>xmonk: <pre><p>Right now 9fans.net is down <a href="https://github.com/9fans/go/issues/3" rel="nofollow">issue3</a> which is why godef is not being able to build.</p> <p>For the github repo you might want to do: go get -u -v github.com/9fans/go/...</p> <p>Then just move 9fans out of github.com/ into 9fans.net and re-try the godef install it should work without issue. ex: mv $GOPATH/src/github.com/9fans $GOPATH/src/9fans.net</p> <p>That should be all you need to do, no need to change the import path in the godef code.</p></pre>DavsX: <pre><p>Very clever approach, I did not think about that (just recently got to workspaces/projects in the tutorial)</p></pre>: <pre><p>[deleted]</p></pre>DavsX: <pre><p>Thanks, that was partially helpful, I had to download godef and plan9 sources and replace 9fans.net with github.com/9fans and build/install manually</p></pre>pursuit92: <pre><p>I&#39;ve noticed the same thing lately. I hopped into irc to see if anyone knew what was up, but got no response :/</p></pre>anacrolix: <pre><p>Maybe it should be called 9fan.</p></pre>

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

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