-
Notifications
You must be signed in to change notification settings - Fork 39
golangdoc -http=:6060 -lang=zh_CN 执行出错,求助,谢谢。 #41
Comments
通常这是由于各种环境变量影响造成的, 你可以先试试 golangdoc --help 你会发现一个参数
比如
先这样测试下, 如果正常(我刚测试通过)那就是环境变量问题了. |
我的translations是放在 /usr/local/go/下的,执行如下命令: |
srcBreadcrumb 这个词从来没有出现过, 无论是官方的,还是翻译的, 还是历史, 都没有. |
我翻了下代码,也没有找到srcBreadcrumb这个词,我把golangdoc重新安装了一遍,问题依旧存在 |
我删掉了 golangdoc 和 golangdoc.translations 从头来了一遍.
我先通知 @chai2010 下. |
各位, 我临时更新了下 https://gohub.github.io/ 提供在线 Golang 文档阅读 只是实现基础功能, 基本可用 |
golangdoc -http=:6060 -godoc-local-root /usr/local/go/translations |
过程如下:
首先按照说明成功的执行了go get github.com/golang-china/golangdoc,生成了golangdoc可执行文件,
然后下载golangdoc.translations:
。。。。。。
goroutine 781 [runnable]:
github.com/golang-china/golangdoc/godoc.(*treeBuilder).newDirTree.func1(0xc0424a4060, 0xc04202fed0, 0xc042031b00, 0xc04255ec00, 0x11, 0x2, 0xe1f5c0, 0xc0423ae720)
D:/Go/src/github.com/golang-china/golangdoc/godoc/dirtrees.go:98
created by github.com/golang-china/golangdoc/godoc.(*treeBuilder).newDirTree
D:/Go/src/github.com/golang-china/golangdoc/godoc/dirtrees.go:98 +0x61d
goroutine 782 [runnable]:
github.com/golang-china/golangdoc/godoc.(*treeBuilder).newDirTree.func1(0xc0424a40c0, 0xc04202fed0, 0xc042031b00, 0xc04255ec00, 0x11, 0x2, 0xe1f5c0, 0xc042664060)
D:/Go/src/github.com/golang-china/golangdoc/godoc/dirtrees.go:98
created by github.com/golang-china/golangdoc/godoc.(*treeBuilder).newDirTree
D:/Go/src/github.com/golang-china/golangdoc/godoc/dirtrees.go:98 +0x61d
goroutine 783 [runnable]:
github.com/golang-china/golangdoc/godoc.(*treeBuilder).newDirTree.func1(0xc0424a4120, 0xc04202fed0, 0xc042031b00, 0xc04255ec00, 0x11, 0x2, 0xe1f5c0, 0xc042664180)
D:/Go/src/github.com/golang-china/golangdoc/godoc/dirtrees.go:98
created by github.com/golang-china/golangdoc/godoc.(*treeBuilder).newDirTree
D:/Go/src/github.com/golang-china/golangdoc/godoc/dirtrees.go:98 +0x61d
goroutine 784 [runnable]:
github.com/golang-china/golangdoc/godoc.(*treeBuilder).newDirTree.func1(0xc0424a4180, 0xc04202fed0, 0xc042031b00, 0xc04255ec00, 0x11, 0x2, 0xe1f5c0, 0xc0426641e0)
D:/Go/src/github.com/golang-china/golangdoc/godoc/dirtrees.go:98
created by github.com/golang-china/golangdoc/godoc.(*treeBuilder).newDirTree
D:/Go/src/github.com/golang-china/golangdoc/godoc/dirtrees.go:98 +0x61d
。。。。。。
http://127.0.0.1:6060/doc无法访问
2. 如果将下载的文件放到$GOPATH下,产生如下错误信息:
2018/03/29 09:45:04 readTemplate: template: godoc.html:82: function "srcBreadcrumb" not defined
http://127.0.0.1:6060/doc还是无法访问
请帮忙解答一下,谢谢
The text was updated successfully, but these errors were encountered: