Skip to content
G

golang-structs-interfaces

Golang struct and interface design patterns

by samberFree

#3434in AI Skills
0In stores

Description

golang-structs-interfaces is an agent skill from the samber cc-skills-golang collection for designing structs and interfaces in Go. It cover…

Highlights

  • Small interfaces of one to three methods
  • Composition and embedding
  • Type assertions and type switches
  • Interface segregation
  • Concrete return types
  • Installs from skills.sh

Ratings & Reviews

No ratings yet

Be the first to rate golang-structs-interfaces.

People also visit

G

golang-design-patterns

Idiomatic Golang design patterns

AI Skills
Get
G

go-interfaces

Defining or implementing Go interfaces, designing abstractions

AI Skills
Get
G

golang-patterns

Idiomatic Go patterns, best practices, and conventions for building robust

AI Skills
Get
G

golang-data-structures

Golang data structures

AI Skills
Get
G

golang-naming

Go (Golang) naming conventions

AI Skills
Get
G

golang-project-layout

Golang project layout and workspace setup

AI Skills
Get

golang-structs-interfaces FAQ

What does this skill cover?

Struct and interface design in Go: composition, embedding, type assertions, type switches, interface segregation and dependency injection.

How big should an interface be?

The skill says one to three methods, and to compose larger contracts from small interfaces.

What do I return from constructors?

Concrete types, according to the skill's design principles.

How do I install it?

Run npx skills add https://github.com/samber/cc-skills-golang --skill golang-structs-interfaces.

What are the security audit results?

skills.sh lists three audits: Gen Agent Trust Hub Pass, Socket Pass and Snyk Pass.

How popular is it?

The page shows about 38.0K installs, and the cc-skills-golang repository has 3.5K GitHub stars.

What are the best golang-structs-interfaces alternatives?

Popular alternatives to golang-structs-interfaces include golang-design-patterns, go-interfaces and golang-patterns. See all golang-structs-interfaces alternatives

Developer Stuff

Badges