mac 下如何安装godoc?

jerrychen · · 12275 次点击
我从$GOPATH/src 下面可以看到godoc了,谢谢指点! 但是又有关联错误 ···[yutu04@localhost ~]$go get github.com/golang/tools/godoc package github.com/golang/tools/godoc imports golang.org/x/tools/godoc/analysis: unrecognized import path "golang.org/x/tools/godoc/analysis" package github.com/golang/tools/godoc imports golang.org/x/tools/godoc/util: unrecognized import path "golang.org/x/tools/godoc/util" package github.com/golang/tools/godoc imports golang.org/x/tools/godoc/vfs: unrecognized import path "golang.org/x/tools/godoc/vfs" package github.com/golang/tools/godoc imports golang.org/x/tools/godoc/vfs/httpfs: unrecognized import path "golang.org/x/tools/godoc/vfs/httpfs"··· 是需要再一个一个手动修改为github.com  ?还是在那里修改配置文件呢?
#4
更多评论
polaris
社区,需要你我一同完善!
1.4 把相关包变成了 golang.org/x 这种形式; 另外,go的代码已经托管到 github 了,你可以看看:https://github.com/golang/tools
#1
```[yutu04@localhost Workspaces]$go get golang.org/x/tools/cmd/godoc package golang.org/x/tools/cmd/godoc: unrecognized import path "golang.org/x/tools/cmd/godoc"``` 为什么,我的一直提示 unrecognized import path呢?
#2