希望为文本光标处的结构实现接口时,按 &shortcut:ImplementMethods; (代码 | 实现方法 )或 &shortcut:ShowIntentionActions; ,然后选择相应的快速修复。GoLand 将生成具有正确签名的接口函数。

Implementing interface members