martini-contrib / binding

Martini handler for mapping and validating a raw request into a structure.
MIT License
140 stars 47 forks source link

QueryString method to parse query strings in the same way as forms #44

Closed averyaube closed 9 years ago

averyaube commented 9 years ago

I realized the majority of the functionality between parsing form data and query strings was identical, and thought this may be useful to some other people!

mholt commented 9 years ago

Thanks for the contribution, Logan!

Form() should get the data from the query string if there is one - is that not happening for you?

averyaube commented 9 years ago

Oops, my bad! I'm new to Go and didn't realize request.Form contained both the request body and query string together. False alarm

mholt commented 9 years ago

Welcome to the world of Go :+1: