
Description
golang-data-structures is an agent skill from the samber cc-skills-golang collection for choosing and using Go's built-in and standard library data structures. Its persona is a Go engineer who understands data structure internals and picks the right structure by reasoning about memory layout, allocation cost and access patterns rather than familiarity. The skill covers how slices work internally, including capacity growth and preallocation, the slices package, how maps are built on hash buckets and the maps package, arrays, and related choices. It points to other skills in the collection for the safety pitfalls such as nil maps and append aliasing, for channels and synchronisation primitives, and for the choice between strings, byte slices and runes. The skill's best practices summary guides the agent to size collections up front where possible and to pick the structure that matches the access pattern. It is useful for Go developers who want their code to avoid needless allocations and to use the standard library's helpers. It is listed on skills.sh, where the page shows install counts and GitHub stars for the collection. Its security audits all pass, including Gen Agent Trust Hub, Socket and Snyk. Install it with npx skills add https://github.com/samber/cc-skills-golang --skill golang-data-structures.…
Highlights
- Slice internals and capacity growth
- Preallocation guidance
- Map internals and the maps package
- Slices and maps helper packages
- Choosing structures by access pattern
- Installs from skills.sh
Ratings & Reviews
No ratings yet
Be the first to rate golang-data-structures.
People also visit

go-concurrency-patterns
Master Go concurrency with goroutines, channels, sync primitives, and context
golang-data-structures FAQ
What does this skill cover?
Go's built-in and standard library data structures: slices, maps, arrays and how to choose between them.
Does it explain slice growth?
Yes. It covers capacity growth and preallocation for slices.
Where are the safety pitfalls?
The skill points to the golang-safety skill in the same collection for nil maps and append aliasing.
How do I install it?
Run npx skills add https://github.com/samber/cc-skills-golang --skill golang-data-structures.
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.5K installs, and the cc-skills-golang repository has 3.5K GitHub stars.
What are the best golang-data-structures alternatives?
Popular alternatives to golang-data-structures include go-concurrency-patterns, golang-code-style and golang-error-handling. See all golang-data-structures alternatives