<p>I'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't figured out how to get it to work :/ </p>
<p>Where is the tool "tour" supposed to be found? </p>
<p>I'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'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'll fire up a local server and launch a new web browser tab/window. If it doesn't, you can open http://localhost:3999 (or whatever port it is, I can't recall off hand). </p>
<p>If that doesn'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="http://127.0.0.1:3999/" rel="nofollow">http://127.0.0.1:3999/</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'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've got 'gotour' 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
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传