Use when defining or implementing Go interfaces, designing abstractions, creating mockable boundaries for testing, or composing types through embedding. Also use when deciding whether to accept an interface or return a concrete type, or using type assertions or type switches, even if the user doesn't explicitly mention interfaces. Does not cover generics-based polymorphism (see go-generics).
安装
尚未确认此技能的独立目录。下面命令会打开仓库技能选择器,请按上游说明选择技能。
skills CLI
npx skills add cxuu/golang-skills