type Person struct {
Name string `query:"name"`
Pass string `query:"pass"`
Products []string `query:"products"`
}
p := new(Person)
if err := c.QueryParser(p); err != nil {
return err
}
log.Println(p.Products) // [shoe, hat]
// ...
})
// Run tests with the following curl command
// curl -X POST "http://localhost:3000/?name=john&pass=doe&products=shoe,hat"