title: How to create a three-dimensional array in Golang
body: <p>I'm trying to create a three-dimensional array which contains blocks (like a rubiks-cube).</p>
  
  <p>I tried many things but I can't get it to work.</p>
  
  <pre><code>func generateTiles(x int, y int, z int) [][][]*tile{
    var tiles [][][]*tile
  
    // Something here
    // resulting in a x by y by z array
    // filled with *tile
  
    return tiles
  }
  </code></pre>
  
  <p>Any suggestions?</p>