Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 Go 新手,我想知道 Goland 中是否有办法或使用 CLI 工具列出实现给定接口的所有类型。
我找到了一个名为的工具guru,它可以列出由给定类型实现的所有接口,但我无法让它在 CLI 中工作。
guru
您可以在任何类型/接口上使用Navigate | Declaration或Navigate | Implementation(s),您将看到由某个类型实现的接口列表或实现某个接口的类型的列表。
Navigate | Declaration
Navigate | Implementation(s)
您还可以使用 IDE 左侧其类型定义旁边的绿色按钮来执行相同的操作。