add godoc links

https://github.com/golang/go/commits?author=dolmen


修改后有何效果?

io/fs: add godoc links为例

在未做改动的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]

文章目录