golangdoc
golangdoc copied to clipboard
Godoc改进版, 支持动态加载翻译文件, 支持Windows后台服务模式运行.
godoc:corpus fstree is nil
- golangdoc.translations已下载到 $(GOROOT)/translations 目录 `echo $GOROOT` --> `/usr/local/go` `/usr/local/go/translations/golangdoc.translations` - golangdoc已经安装 `$GOPATH/src/github.com/golang-china/golangdoc` `$GOPATH/bin/golangdoc` - 当执行运行中文版的文档服务时,报错 `golangdoc -http=:6060 -lang=zh_CN` `2017/02/23 14:16:21 readTemplate: template: package.html:280: function "modeQueryString" not defined`
`golangdoc -http=:6060 -lang=zh_CN` 运行的时候报错:fatal error: concurrent map writes 经过go build -race调试,发现是local/local.go的 `pkgDocTable = make(map[string]*doc.Package) // map[mapKey(...)]... pkgDocIndexTable = make(map[string]string) // map[mapKey(...)]... ` 读写冲突造成的,这两个map需要分别上读写锁
`go version` > go version go1.7 darwin/amd64 `go env` > GOARCH="amd64" > GOBIN="" > GOEXE="" > GOHOSTARCH="amd64" > GOHOSTOS="darwin" > GOOS="darwin" > GOPATH="/Users/zcjl/GoDemo" > GORACE="" > GOROOT="/usr/local/go" > GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64" >...
连续3次打开,都崩溃了。 [1.txt](https://github.com/golang-china/golangdoc/files/77206/1.txt) [2.txt](https://github.com/golang-china/golangdoc/files/77207/2.txt) [3.txt](https://github.com/golang-china/golangdoc/files/77209/3.txt)
golangdoc -http=:6060 -lang=zh_CN -play -v goroutine 651 [runnable]: runtime.Gosched() /usr/local/Cellar/go/1.5.1/libexec/src/runtime/proc.go:166 +0x14 bytes.makeSlice(0xe00, 0x0, 0x0, 0x0) /usr/local/Cellar/go/1.5.1/libexec/src/bytes/buffer.go:195 +0x64 bytes.(_Buffer).ReadFrom(0xc8214695f8, 0x1f00060, 0xc82029ae38, 0x600, 0x0, 0x0) /usr/local/Cellar/go/1.5.1/libexec/src/bytes/buffer.go:167 +0xd3 io/ioutil.readAll(0x1f00060, 0xc82029ae38, 0x200, 0x0, 0x0,...
是否可以增加 `go generate` 方式下载/安装翻译文件的特性?