1. type Person struct {
    2. Name string `query:"name"`
    3. Pass string `query:"pass"`
    4. Products []string `query:"products"`
    5. }
    6. p := new(Person)
    7. if err := c.QueryParser(p); err != nil {
    8. return err
    9. }
    10. log.Println(p.Products) // [shoe, hat]
    11. // ...
    12. })
    13. // Run tests with the following curl command
    14. // curl -X POST "http://localhost:3000/?name=john&pass=doe&products=shoe,hat"