https://github.com/golang/go/commits?author=dolmen
修改后有何效果?
在未做改动的go源码中执行 godoc -http=:9092 -goroot="."
到 http://localhost:9092/pkg/io/fs/ 中查看
其中,DirEntry是当前文件中的一个interface
在已做改动的go源码中执行 godoc -http=:9093 -goroot="."
可见,有链接了~
其实很容易找~ Goland都有高亮提示
注意,只改能暴露出去的~
小写的资源,资源内部的注释,不用改~
当前文件中唯一的资源,如type Compressor ,不需要指定什么,直接[xxx]即可
但对于有接收者的资源,如func (w *Writer) Close() ,则需要指明 [Writer.Close]
原文链接: https://dashen.tech/2020/10/12/add-godoc-links/
版权声明: 转载请注明出处.