Go developers use structs and interfaces every day. This skill shows you how to design small interfaces that are easy to combine. You will also learn when to use pointer or value receivers and how to add struct field tags for turning data into JSON or YAML.
You will learn to accept interfaces in your functions but return concrete structs. This pattern keeps your code flexible and simple to use. The skill also covers type assertions and type switches for checking types at runtime.
These techniques help you write clean and testable Go code. They follow common best practices like keeping interfaces small and composing them into bigger ones.
Global
mkdir -p ~/.claude/skills/golang-structs-interfacesProject
mkdir -p .claude/skills/golang-structs-interfacesSource Repository
Typescript Advanced Typeswshobson/agents
Master advanced TypeScript types for safer and more flexible code
Python Executorqu-skills/skills
Execute Python code safely with 100+ libraries for data, scraping, and media
Golang Error Handlingsamber/cc-skills-golang
Learn to create, wrap, inspect, and log Go errors like a professional engineer
Golang Performancesamber/cc-skills-golang
Speed up your Go code using proven patterns for allocation reduction and CPU efficiency
Golang Design Patternssamber/cc-skills-golang
Idiomatic Go patterns for clean constructors error handling and graceful shutdown
Golang Concurrencysamber/cc-skills-golang
Write safe Go concurrency with goroutines, channels, and sync primitives
Golang Data Structuressamber/cc-skills-golang
Optimize Go data structures for speed and memory efficiency with internals knowledge
Golang Contextsamber/cc-skills-golang
Master Go context for cancellations, timeouts, and request values