samber/cc-skills-golang · golang-data-structures · SKILL.md
Go语言数据结构
Go语言数据结构详解——切片(内部机制、容量增长、预分配、切片包)、映射(内部机制、哈希桶、映射包)、数组、container/list/heap/ring、strings.Builder与bytes.Buffer对比、泛型集合、指针(unsafe.Pointer、weak.Pointer)及复制语义。适用于选择或优化Go数据结构、实现泛型容器、使用container/包、unsafe或weak指针,或探究切片/映射内部机制时。不适用于性能分析已识别瓶颈后的优化模式应用(参见`samber/cc-skills-golang@golang-performance`技能)。
这是公开 Agent Skill 的中文说明,由采集翻译或编辑润色,完整内容以上游 SKILL.md 为准。适用于 Cursor / Claude Code / Codex / Gemini。 打开上游 SKILL.md
安装
通用(npx skills)
npx skills add samber/cc-skills-golang -s golang-data-structures
Cursor
把该 Skill 复制到项目的 .cursor/skills/golang-data-structures/ 目录
Claude Code
npx skills add samber/cc-skills-golang -a claude-code -s golang-data-structures