martini-contrib / binding

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

Refactors form mapping into smaller functions for clarity #41

Open murrekatt opened 9 years ago

murrekatt commented 9 years ago

In preparation for adding support for nested slices of structs #40 I thought I'd refactor the form mapping code that was mostly a single function. Now it's clearly split into smaller functions that take care of the various different cases we care about.

This isn't adding anything just rearranging code for clarity. Enjoy!

murrekatt commented 9 years ago

This is related to issue #40

mholt commented 9 years ago

Awesome, I can't wait to take a look! I'm super-busy right now, but be assured I will get around to it.