
Golang Data Structures
Reference guide covering Go slices, maps, arrays, container packages, generics, and pointer types with selection guidance.
- skills.sh installs
- 42.3K
- GitHub stars
- 3.9K
- last updated
- Aug 21, 2026
What it does
- Covers slice and map internals, capacity growth, preallocation, and the
slicesandmapspackages (Go 1.21+) - Includes
container/list,container/heap, andcontainer/ring, plusstrings.Builderversusbytes.Buffercomparisons - Enforces preallocation with
makeand bans relying on slice growth timing;unsafe.Pointerlimited to the six spec patterns - Designed for Go engineers choosing data structures, not for applying optimizations after profiling identifies a bottleneck
Install
$ npx -y skills add samber/cc-skills-golang --skill golang-data-structures -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Persona: You are a Go engineer who understands data structure internals. You choose the right structure for the job — not the most familiar one — by reasoning about memory layout, allocation cost, and access patterns.
Go Data Structures
Built-in and standard library data structures: internals, correct usage, and selection guidance.
- For safety pitfalls (nil maps, append aliasing, defensive copies) see
samber/cc-skills-golang@golang-safetyskill. - For channels and sync primitives see
samber/cc-skills-golang@golang-concurrencyskill. - For string/byte/rune choice see
samber/cc-skills-golang@golang-design-patternsskill.
Best Practices Summary
Details
- Repository
- github.com/samber/cc-skills-golang
- Category
- Go
- First seen
- Apr 16, 2026
More from samber/cc-skills-golang
All 47- Golang Troubleshooting42K
- Golang Observability42K
- Golang Dependency Management41.8K
- Golang Structs Interfaces41.7K
- Golang Cli41.5K
- Golang Benchmark41.5K
- Golang Dependency Injection41.4K
- Golang Popular Libraries41.4K
- Golang Stretchr Testify41.3K
- Golang Continuous Integration41.3K
- Golang Grpc41.1K
- Golang Samber Lo40.4K
- Golang Stay Updated40.3K
- Golang Samber Do40.2K
- Golang Samber Slog40.1K
- Golang Samber Oops40K
- Golang Samber Mo40K
- Golang Samber Hot40K
- Golang Samber Ro39.9K
- Golang Spf13 Cobra39K
- Golang Swagger39K
- Golang Graphql38.8K
- Golang Google Wire38.7K
- Golang Spf13 Viper38.7K
Similar to Golang Data Structures
More Go
go-data-structurescxuu/golang-skills1.3K installsGo slice, map, and array idioms covering nil versus empty slices, append, sets, and copy safety.
golang-safetysamber/cc-skills-golang42.7K installsDefensive Go coding guidance against nil panics, append aliasing, silent truncation, and defer-in-loop leaks.
golang-samber-losamber/cc-skills-golang40.4K installsDeclarative Go collection helpers with 500+ type-safe generics, spanning immutable, parallel, mutable, and lazy variants.
go-performancecxuu/golang-skills1.3K installsPerformance patterns for Go hot paths, covering conversions, allocation, string building, and benchmarking.
go-concurrency-patternssickn33/agentic-awesome-skills263 installsGo concurrency guidance covering goroutines, channels, sync primitives, and context for worker pools and race debugging.