Giverny

Golang Structs Interfaces

Golang struct and interface design patterns — composition, embedding, type assertions, type switches, interface segregation, dependency injection via interfaces, struct field…

by samber★ 4,015Languages

What Golang Structs Interfaces does

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 interfac

How to install Golang Structs Interfaces in Claude Code

Giverny gives you a ready prompt with the exact install command from samber/cc-skills-golang. Sign in with GitHub, copy the prompt and paste it into Claude Code; Claude installs the skill and confirms it loaded. To install by hand, clone samber/cc-skills-golang and copy the skills/golang-structs-interfaces folder into ~/.claude/skills/.

How to use it

Once installed, Claude loads Golang Structs Interfaces on its own whenever your request matches what the skill does. You can also ask for it by name, for example: “Use the golang-structs-interfaces skill on my current project.”

More Claude skills for languages