Skip to content
This repository has been archived by the owner on Aug 24, 2022. It is now read-only.

golang-china/golangdoc

Repository files navigation

Godoc 改进版本, 支持翻译文档的动态加载

GAE预览 https://golang-china.appspot.com/

安装 golangdoc

安装 golangdoc :

go get github.com/golang-china/golangdoc

下载翻译文件 到 $(GOROOT)/translations 目录:

https://github.com/golang-china/golangdoc.translations

启用简体中文版文档服务:

golangdoc -http=:6060 -lang=zh_CN

动态切换包文档:

其中 URL 的 lang 参数为 en/raw 或 无对应语言时 表示使用原始的文档, 缺少或为空时用 golangdoc 服务器启动时命令行指定的 lang 参数.

部署到 AGE 环境

golangdoc 支持 GAE 环境. 具体请参考: appengine/README.md

系统服务模式运行(Windows平台)

# 安装 Windows 服务
golangdoc -service-install -http=:6060

# 启动/停止 Windows 服务
golangdoc -service-start
golangdoc -service-stop

# 卸载 Windows 服务
golangdoc -service-remove

其他

About

Godoc改进版, 支持动态加载翻译文件, 支持Windows后台服务模式运行.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published