Golang Structs Interfaces

Golang struct and interface design patterns — composition, embedding, type assertions, type switches, interface segregation, dependency injection via interfaces, struct field tags, and pointer vs value receivers. Use this skill when designing Go types, defining or implementing interfaces, embedding structs or interfaces, writing type assertions or type switches, adding struct field tags for JSON/YAML/DB serialization, or choosing between pointer and value receivers. Also use when the user asks about "accept interfaces, return structs", compile-time interface checks, or composing small interfaces into larger ones. Use when this capability is needed.

tomevault-io 70f4b3b 2 files · 13.3 KB Updated

File contents

tomevault-io/skills-registry/tree/main/muratovv--ai-hats--golang-structs-interfaces commit 70f4b3b592

Frequently asked questions

npx skillmds@latest add tomevault-io/golang-structs-interfaces