monoculum / formam

a package for decode form's values into struct in Go
Apache License 2.0
190 stars 19 forks source link

Allow "param[]" #24

Closed arp242 closed 5 years ago

arp242 commented 5 years ago

Allow <input name="param[]"> in addition to just <input name="param">.

This is the least surprising behaviour, as many framework/libraries in many different languages use the param[] syntax. I've been using this library for 3 years and it still trips me up by accident sometimes >_<

This shouldn't break any existing behaviour, as far as I can tell.

Fixes #7

emilgpa commented 5 years ago

Thanks you very much for the PR!