<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/"><channel><title>Slice on Hex Blog</title><link>https://hex-go.github.io/tags/slice/</link><description>Recent content in Slice on Hex Blog</description><generator>Hugo -- gohugo.io</generator><language>zh</language><managingEditor>hex-py@gmail.com (Hex)</managingEditor><webMaster>hex-py@gmail.com (Hex)</webMaster><copyright>©2026, All Rights Reserved</copyright><lastBuildDate>Tue, 22 Sep 2020 07:23:34 +0000</lastBuildDate><atom:link href="https://hex-go.github.io/tags/slice/index.xml" rel="self" type="application/rss+xml"/><item><title>Go-Slice-切片操作汇总</title><link>https://hex-go.github.io/posts/golang/2020-09-22-go-slice-%E5%88%87%E7%89%87%E6%93%8D%E4%BD%9C%E6%B1%87%E6%80%BB/</link><pubDate>Tue, 22 Sep 2020 07:23:34 +0000</pubDate><author>hex-py@gmail.com (Hex)</author><atom:modified>Tue, 22 Sep 2020 07:23:34 +0000</atom:modified><guid>https://hex-go.github.io/posts/golang/2020-09-22-go-slice-%E5%88%87%E7%89%87%E6%93%8D%E4%BD%9C%E6%B1%87%E6%80%BB/</guid><description>重要 切片底层是 ptr + len + cap 三元组。理解容量变化规则（翻倍扩容、子切片共享底层数组）是避免内存泄漏和意外修改的关键。 1. 创建 方式 代码 len cap 说明 字面量</description><dc:creator>Hex</dc:creator><category>Go</category><category>Slice</category><category>Golang</category></item></channel></rss>