Software Development

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.

Publisher / source
samber/cc-skills-golang (found on skills.sh)
Upstream record
samber/cc-skills-golang
Version
Version 5
Published
Publication review
Approved for publication
Content fingerprint
0bc93e1e86c3cf24571205b6fdd773a23df1b34366e7f639a9530d6984117601