go tool: no such tool "tour"

agolangf · 2016-01-22 02:44:39 · 2785 次点击    
这是一个分享于 2016-01-22 02:44:39 的资源,其中的信息可能已经有所发展或是发生改变。

I'm trying out Go for the first time. I was following these docs and wanted to run the go tour locally, but I haven't figured out how to get it to work :pensive:

Where is the tool "tour" supposed to be found?

I'm on OSX 10.11.3, and I installed Go via Homebrew

my Go entries in .zshrc

export GOPATH=$HOME/code/Go
export GOROOT=/usr/local/opt/go/libexec
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:$GOROOT/bin  

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!


评论:

txmoose:

Same point in my Golang career and same platform right now bud. In a terminal, you should be able to type

go tool tour

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).

If that doesn't work, remove Go via homebrew and install it via the official installer.

https://golang.org/dl/

Good luck!

EDIT: Added in the proper address for the local server, which is http://127.0.0.1:3999/

EDIT2: Direct link to the OSX package for you, bud.

balloonanimalfarm:

What exactly is the error it's giving?

Running go tool tour works for me with go version go1.5 linux/amd64.

mm256:

I've got 'gotour' command in path when installed the tour.

coolshanth:

Yep, this is what happened for me too.

hopsnob:

Did you go get the tour


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

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