title: How do I find the size of the array in go
body: <p>I have tried <code>len()</code> function but it gives the declared value. The <code>size()</code> function gives an error.</p>
  
  <p>Code:</p>
  
  <pre><code>package main
  var check [100]int
  func main() {
      println(len(check))
  }
  </code></pre>
  
  <p>The output is <code>100</code> here, I need the total items in array (i.e. <code>0</code>).</p>