godoc 不能为内部文件夹中的包创建文档吗?

Can't godoc create documentation for packages within internal folder?

在常见的项目结构中,有如下文件夹:

/命令

/内部

/包

然而当执行godoc

没有为 internal 文件夹中的包创建文档: internal is missing between cmd and pkg

问题 是:包中有函数,它们需要记录,即使是内部使用。有什么办法吗?

For instance, https://golang.org/pkg/math/big/?m=all shows the documentation for all (not just the exported) declarations of package big.

如本 documentation 中所述,在 URL 中使用 m=all 参数将列出内部包。需要注意的是,它包括所有声明,包括未导出的声明。