title: Repeating formData to Go struct
body: <p>I am submitting a repeating form, where the resulting formData is parsed as:</p>
  
  <pre><code>"Name":  {"John", "Jake"},
  "Phone": {"999-999-999", "12312-123-123"}, 
  </code></pre>
  
  <p>However, I want to structure to be </p>
  
  <pre><code>{ Name: "John", Phone: "999-999-999" }, 
  { Name: "Jake", Phone: "12312-123-123" }.
  </code></pre>
  
  <p>I'm told <a href="http://www.gorillatoolkit.org/pkg/schema" rel="nofollow noreferrer">gorilla/schema</a>, is a good fit, but I tried it below and it produces an empty slice. Is there something I am missing?</p>
  
  <pre><code>package main
  
  import (
          "fmt"
  
          "github.com/gorilla/schema"
  )
  
  type Person struct {
          Name  string
          Phone string
  }
  
  func main() {
          values := map[string][]string{
                  "Name":  {"John", "Jake"},
                  "Phone": {"999-999-999", "12312-123-123"},
          }
          var persons []Person
          decoder := schema.NewDecoder()
          decoder.Decode(persons, values)
          fmt.Println(persons)
  }
  </code></pre>