使用的环境mac 10.9.3,
使用brew install go
go version
go version go1.3.3 darwin/amd64,
安装完没有godoc
然后,安装go get code.google.com/p/go.tools/cmd/godoc
提示:
```package code.google.com/p/go.tools/cmd/godoc imports golang.rog/x/tools/blog: unrecognized import path "golang.org/x/tools/blog"
package code.google.com/p/go.tools/cmd/godoc imports golang.rog/x/tools/doc: unrecognized import path "golang.org/x/tools/doc"
....
```
请教各位,如何解决,google了没有方法,或者方法不行,
你们有遇到过这个问题吗?
我从$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
更多评论
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