从包的 godoc 引用不同的包
Refer a different package from the godoc of a package
有人可以告诉我是否可以从一个包的 godoc
引用不同的包吗?例如,假设我有一个包裹 src/logger/
。在 src/logger/doc.go
中,我需要参考 src/config/
。类似于 javadoc 中的 @see
。
有推荐的方法吗?
我正在使用 Go 1.7。
我不知道这是目前可能的。例如。 https://golang.org/pkg/io/ioutil/#TempFile refers to the os
package simply using *os.File
. See the source code comments at https://golang.org/src/io/ioutil/tempfile.go#L40.
and writing, and returns the resulting *os.File.
有人可以告诉我是否可以从一个包的 godoc
引用不同的包吗?例如,假设我有一个包裹 src/logger/
。在 src/logger/doc.go
中,我需要参考 src/config/
。类似于 javadoc 中的 @see
。
有推荐的方法吗?
我正在使用 Go 1.7。
我不知道这是目前可能的。例如。 https://golang.org/pkg/io/ioutil/#TempFile refers to the os
package simply using *os.File
. See the source code comments at https://golang.org/src/io/ioutil/tempfile.go#L40.
and writing, and returns the resulting *os.File.