title: How to create an array of struct in golang as we create in C
body: <p>I want to create an array of <code>struct</code> in golang as we create in C. I am trying to create like this, but is not working.</p>
  
  <pre><code>type State struct{
      name string
      population string
  }st[5]
  </code></pre>