go tool: no such tool "tour"

agolangf · · 2442 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>I&#39;m trying out Go for the first time. I was following <a href="https://tour.golang.org/welcome/3" rel="nofollow">these docs</a> and wanted to run the go tour locally, but I haven&#39;t figured out how to get it to work :/ </p> <p>Where is the tool &#34;tour&#34; supposed to be found? </p> <p>I&#39;m on OSX 10.11.3, and I installed Go via Homebrew </p> <p>my Go entries in .zshrc </p> <pre><code>export GOPATH=$HOME/code/Go export GOROOT=/usr/local/opt/go/libexec export PATH=$PATH:$GOPATH/bin export PATH=$PATH:$GOROOT/bin </code></pre> <p>EDIT: Figured it out thanks to help from ##go-nuts and Stackoverflow. I guess the docs are a bit out of date, and Homebrew doesn&#39;t install gotour by default. Loving the community already!</p> <hr/>**评论:**<br/><br/>txmoose: <pre><p>Same point in my Golang career and same platform right now bud. In a terminal, you should be able to type </p> <pre><code>go tool tour </code></pre> <p>And it&#39;ll fire up a local server and launch a new web browser tab/window. If it doesn&#39;t, you can open http://localhost:3999 (or whatever port it is, I can&#39;t recall off hand). </p> <p>If that doesn&#39;t work, remove Go via homebrew and install it via the official installer. </p> <p><a href="https://golang.org/dl/" rel="nofollow">https://golang.org/dl/</a></p> <p>Good luck!</p> <p>EDIT: Added in the proper address for the local server, which is <a href="" rel="nofollow"></a></p> <p>EDIT2: <a href="https://storage.googleapis.com/golang/go1.5.3.darwin-amd64.pkg" rel="nofollow">Direct link to the OSX package for you, bud.</a></p></pre>balloonanimalfarm: <pre><p>What exactly is the error it&#39;s giving?</p> <p>Running <code>go tool tour</code> works for me with <code>go version go1.5 linux/amd64</code>.</p></pre>mm256: <pre><p>I&#39;ve got &#39;gotour&#39; command in path when installed the tour.</p></pre>coolshanth: <pre><p>Yep, this is what happened for me too.</p></pre>hopsnob: <pre><p>Did you go get the tour</p></pre>

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

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