<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
    <channel>
        <title> Slice - 标签 - 五岁博客</title>
        <link>https://fiveyoboy.com/tags/-slice/</link>
        <description> Slice - 标签 - 五岁博客</description>
        <generator>Hugo -- gohugo.io</generator><language>zh-CN</language><managingEditor>fiveyoboy@qq.com (五岁博客)</managingEditor>
            <webMaster>fiveyoboy@qq.com (五岁博客)</webMaster><lastBuildDate>Wed, 25 Mar 2026 00:00:00 &#43;0000</lastBuildDate><atom:link href="https://fiveyoboy.com/tags/-slice/" rel="self" type="application/rss+xml" /><item>
    <title>Go 切片截取详解：三下标语法与底层原理</title>
    <link>https://fiveyoboy.com/articles/go-slice-subslice-syntax/</link>
    <pubDate>Wed, 25 Mar 2026 00:00:00 &#43;0000</pubDate>
    <author>五岁博客</author>
    <guid>https://fiveyoboy.com/articles/go-slice-subslice-syntax/</guid>
    <description><![CDATA[<h2 id="为什么要搞懂切片截取">为什么要搞懂切片截取</h2>
<p>在 Go 语言日常开发中，切片（slice）是使用频率最高的数据结构之一。我们几乎天天都在用 <code>s[1:3]</code> 这样的写法来截取子切片，但你是否真正理解过截取之后新切片的容量是怎么来的？修改新切片的元素，原切片会不会跟着变？</p>]]></description>
</item>
</channel>
</rss>
