How do you quickly find the implementation(s) of an interface in Golang?

huangapple go评论66阅读模式
英文:

How do you quickly find the implementation(s) of an interface in Golang?

问题

让我们假设我想找到所有实现了io.ReadCloser接口的代码。

在Go语言中,我该如何做到这一点?

英文:

Let's say I want to find all implementations of the io.ReadCloser interface.

How can I do this in Go?

答案1

得分: 20

2015年:你可以使用以下方法:

你还可以使用以下工具:

英文:

2015: You can use:

You also have:

huangapple
  • 本文由 发表于 2015年5月3日 18:47:37
  • 转载请务必保留本文链接:https://go.coder-hub.com/30012910.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定