nu" />
  </label>

  <strong>Go 陷阱之切片占用过多内存</strong>

  <label for="toc-control">
    
    <img src="/svg/toc.svg" class="book-icon" alt="Table of Contents" />
    
  </label>
</div>


  
  <aside class="hidden clearfix">
    
  
<nav id="TableOfContents">
  <ul>
    <li><a href="#概述">概述</a>
      <ul>
        <li><a href="#切片返回值占用了整个数组">切片返回值占用了整个数组</a>
          <ul>
            <li><a href="#错误的做法">错误的做法</a>