I have written a small go program, and I want to generate standalone HTML documents from source code that can be viewed without godoc server. But I can't find any way to achieve it. if anyone could help me, I'll appreciate it.
3条回答 默认 最新
- doutinghou6980 2012-11-23 13:42关注
A simple HTML documentation can be produced by, for example:
$ godoc -html container/heap Interface > page.html
A bit better form can by produced by:
$ godoc -url "http://localhost:6060/pkg/container/heap/" > page.html
(I have godoc server running at :6060 and I'm not sure if that's a prerequisite).
The HTML would probably look better if combined with original CSS styles found in the Go repository by adjusting the produced HTML files to properly refer to it.
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
悬赏问题
- ¥20 simulink单相桥式整流电路
- ¥35 问问51单片机流水灯的代码该怎么写
- ¥15 关于#百度#的问题:感觉已经将字体段落、字体、页边距、纸张大小、文档网络调成与论文模板一致,为什么黄色部分字体左右的间距还是不一样啊,求私信发文件接收看一下
- ¥15 stata webuse报错
- ¥15 TypeError: Cannot read properties of undefined (reading 'status')
- ¥15 如何利用AI去除图片中的竹架子
- ¥15 python 写个基金爬取的代码,自动卖出功能
- ¥15 Linux系统启动不起来
- ¥15 为什么运行仿真数码管不亮(语言-c语言)
- ¥15 陈仁良《直升机飞行动力学》小扰动线化方程如何推导