golang-data-structures

Community

Master Go data structures and memory layout.

Authorsamber
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Go developers often struggle to choose and tune internal data structures. This skill explains the internals of slices, maps, arrays, and pointers, guiding decisions that impact memory usage and performance.

Core Features & Use Cases

  • Slice internals, capacity growth, preallocation, and the slices package (Go 1.21+).
  • Map internals, preallocation, and memory considerations for large collections.
  • Arrays, container/list vs slices for performance trade-offs, and copy semantics.
  • Pointer types including unsafe.Pointer and weak.Pointer for GC-safe caches.
  • Cross-references to related skills for safety, concurrency, and generics.

Quick Start

Audit your Go codebase using this skill to optimize memory layout by reviewing Slice Internals, Map Internals, and Pointer guidance.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: golang-data-structures
Download link: https://github.com/samber/cc-skills-golang/archive/main.zip#golang-data-structures

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.