带有所有补丁的 OS X Yosemite。安装好了
brew install go --cross-compile-common
创建 ~/work,设置环境如下:
export GOPATH=$HOME/work
export GOROOT='/usr/local/Cellar/go/1.6'
export PATH=$PATH:$GOROOT/bin
现在尝试添加一个包给我一个错误:
go get golang.org/x/tools/cmd/godoc
package archive/zip: unrecognized import path "archive/zip" (import path does not begin with hostname)
package bytes: unrecognized import path "bytes" (import path does not begin with hostname)
package encoding/json: unrecognized import path "encoding/json" (import path does not begin with hostname)
package encoding/xml: unrecognized import path "encoding/xml" (import path does not begin with hostname)
package errors: unrecognized import path "errors" (import path does not begin with hostname)
package expvar: unrecognized import path "expvar" (import path does not begin with hostname)
package flag: unrecognized import path "flag" (import path does not begin with hostname)
package fmt: unrecognized import path "fmt" (import path does not begin with hostname)
...
Go 是否支持 OS X 10.10?我在这里错过了什么?
蝴蝶刀刀
千万里不及你
慕妹3242003
相关分类