title: Gin Gonic array of values from PostForm
body: <p>I'm trying to capture an array of Post values from HTML form using Go / Gin Gonic -- in PHP I would use something like:</p>
  
  <pre><code>&lt;form method="POST" enctype="multipart/form-data" action="mygo"&gt;
   &lt;input type=hidden name="emails[]" value="email1@email.com"&gt;
   &lt;input type=hidden name="emails[]" value="email2@email.com"&gt;
   &lt;input type=hidden name="emails[]" value="email3@email.com"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>However this doesn't seem to work with Gin Gonic (or Go for that matter).</p>
  
  <p>I've also tried:</p>
  
  <pre><code>&lt;form method="POST" enctype="multipart/form-data" action="mygo"&gt;
   &lt;input type=hidden name="emails" value="email1@email.com"&gt;
   &lt;input type=hidden name="emails" value="email2@email.com"&gt;
   &lt;input type=hidden name="emails" value="email3@email.com"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>As elsewhere it is suggested that doing this would cause <code>c.PostForm("emails")</code> to return a slice.  However in practice it seems that this instead returns the last value as a string instead :(</p>
  
  <p>Interestingly, <code>c.Request.PostForm</code> returns an empty map, even if <code>c.Request.ParseForm()</code> is called first.  What am I doing wrong?</p>
  
  <p>Go Form:</p>
  
  <pre><code>func main() {
  // ...
      router.POST("mygo",parseFunc)
  }
  
  func mygo(c *gin.Context) {
    c.Request.ParseForm()
    log.Printf("%v",c.Request.PostForm["emails"]) // ""
    log.Printf("%v",c.PostForm("emails") // "email3@email.com"
  }
  </code></pre>