【发布时间】:2014-08-16 07:19:34
【问题描述】:
新的 godoc 有一些不错的功能,比如调用者列表等。无论如何我在运行它时遇到问题,比如:
➜ ~GOPATH git:(master) ✗ ls src/github.com/coreos/etcd/
CHANGELOG DCO Documentation README.md bench build contrib error fixtures go_version.go http main.go mod scripts store tests
CONTRIBUTING.md Dockerfile LICENSE Vagrantfile bin config discovery etcd foo gopath log metrics pkg server test.sh third_party
➜ ~GOPATH git:(master) ✗ godoc github.com/coreos/etcd/discovery -http=:6060
No match found.
谁能告诉我如何在我上面使用的一些流行的 go repos 上运行它,比如 etcd?
【问题讨论】:
-
你设置了 GOPATH 吗?我觉得还可以。
-
是的,我正在从 GOPATH 运行命令。
-
我明白了:
-http=:6060在给定一个包时似乎不起作用。给一个包名或-http=:6060
标签: go documentation godoc