# golang-data-structures

> Golang data structures — slices (internals, capacity growth, preallocation, slices package), maps (internals, hash buck…

Golang data structures — slices (internals, capacity growth, preallocation, slices package), maps (internals, hash buckets, maps package), arrays, container/list/heap/ring, strings.Builder vs bytes.Buffer, generic collections, pointers (unsafe.Pointer, weak.Pointer), and copy semantics. Use when choosing or optimizing Go data structures, implementing generic containers, using container/ packages, unsafe or weak pointers, or questioning slice/map internals. Not for applying optimization patterns once profiling has identified a bottleneck (→ See `samber/cc-skills-golang@golang-performance` skill).

- Type: Skill
- Made by: samber
- Category: Developer tools
- Formats: Skills
- Version: 1.2.2
- Source: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-data-structures
- Page: https://pluginboard.ai/skills/golang-data-structures

## Works with

- ChatGPT
- Claude
- Gemini
- GitHub Copilot
- Cursor
- Claude Code
- Codex
- Antigravity
- Gemini CLI
- Replit
- OpenClaw
- OpenCode
- Hermes Agent

## Install

### ChatGPT

In ChatGPT: Download the golang-data-structures folder and zip it, then Plugins → Skills → Create → Upload from your computer. Business and Enterprise plans.

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-data-structures

### Claude

In Claude (web or desktop): Download the golang-data-structures folder and zip the folder itself, then upload it in Customize → Skills.

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-data-structures

### Gemini

In Gemini: Download the golang-data-structures folder, then at gemini.google.com click Customize → Skills → Create → Upload and pick the folder (or a .zip of it).

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-data-structures

### GitHub Copilot

Run in your terminal:

```shell
npx -y degit samber/cc-skills-golang/skills/golang-data-structures ~/.copilot/skills/golang-data-structures
```

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-data-structures

### Cursor

Run in your terminal:

```shell
npx -y degit samber/cc-skills-golang/skills/golang-data-structures ~/.cursor/skills/golang-data-structures
```

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-data-structures

### Claude Code

Run in your terminal:

```shell
npx -y degit samber/cc-skills-golang/skills/golang-data-structures ~/.claude/skills/golang-data-structures
```

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-data-structures

### Codex

Run in your terminal:

```shell
npx -y degit samber/cc-skills-golang/skills/golang-data-structures ~/.agents/skills/golang-data-structures
```

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-data-structures

### Antigravity

In Antigravity: Copy the golang-data-structures folder into ~/.gemini/config/skills (Antigravity app and IDE) or ~/.gemini/antigravity-cli/skills (Antigravity CLI).

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-data-structures

### Gemini CLI

Run in your terminal:

```shell
npx -y degit samber/cc-skills-golang/skills/golang-data-structures ~/.gemini/skills/golang-data-structures
```

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-data-structures

### Replit

Run in your terminal:

```shell
npx -y degit samber/cc-skills-golang/skills/golang-data-structures .agents/skills/golang-data-structures
```

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-data-structures

### OpenClaw

Run in your terminal:

```shell
npx -y degit samber/cc-skills-golang/skills/golang-data-structures ~/.openclaw/skills/golang-data-structures
```

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-data-structures

### OpenCode

Run in your terminal:

```shell
npx -y degit samber/cc-skills-golang/skills/golang-data-structures ~/.config/opencode/skills/golang-data-structures
```

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-data-structures

### Hermes Agent

Run in your terminal:

```shell
npx -y degit samber/cc-skills-golang/skills/golang-data-structures ~/.hermes/skills/golang-data-structures
```

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-data-structures

---
From Pluginboard (https://pluginboard.ai).
