ZooWork Market · Skill
go-interfaces
Guidance from Effective Go on interfaces, type assertions, type switches, and embedding. Covers implicit interface satisfaction, the comma-ok idiom for safe type assertions, returning interfaces for generality, and using interface or struct embedding for composition and method promotion. Use this Skill when defining or implementing interfaces, performing type assertions or type switches at runtime, or composing types via embedding.