Show implemented interfaces
Hi, I would like to know if there is a way in Goland to show which interfaces are implemented by specified struct and which structs implement specified interfaces? It looks like "structure" panel is relatively close to do it but actually it shows elements at this same level. Is there any reason for which we cannot simple see hierarchy tree with "interface" as a leaf under type struct and struct as a leaf under interface (of course a button for switch those views would be perfect). And another switch to show only structs or interfaces at top level hierarchy?

It will be a far easier to grasp which interfaces are implemented by struct and which structs implements specified interface. It would be especially handy in situation where u have quite a lot interfaces and structs in use (particulary useful in relatively big projects). Looks like pretty neat functionality for Gophers due to Go approach for implmenting interfaces and composition over inheritance. Moreover it looks like these information are already gathered by IDE for displaying "green icons" near the code view which shows these information but not in such transparent way especially if u have a tons of structs in use:
Thanks
Adrian
请先登录再写评论。
Hello Adrian,
Thanks for the detailed description and screenshot.
You can get a similar result by executing the Type Hierarchy (Navigate | Type Hierarchy) action on an interface or structure (in code or Structure View).
Also, from the Hierarchy View, you can export data to a text file. Sometimes it's useful.
Does it help?
Hello,
Looks awesome, exactly what I was looking for.
Thanks
Adrian