title: How to increase array size
body: <p>Suppose I have an array</p>
  <pre><code>array1 := [5]int {
      1,2,3,4,5,
  }
  </code></pre>
  <p>And I need to increase this array size.</p>
  <ul>
  <li>How can I increase array size in <code>go</code> so that I can add additional element?</li>
  </ul>
  <p>If I have another array</p>
  <pre><code>array2 := [5]int {
      6,7,8,9,10,
  }
  </code></pre>
  <ul>
  <li>How can I append <code>array2</code> with <code>array1</code>?</li>
  </ul>
  <p>Then <code>array1</code> will print <code>[1,10]</code></p>
  <pre><code>for i:=0; i&lt;len(array1); i++ {
      fmt.Print(array1[i], &quot;,&quot; )
  }
  </code></pre>
  <p>Output:</p>
  <pre><code>1,2,3,4,5,6,7,8,9,10
  </code></pre>