jacobconley / habitat

Holistic, open-ended web application development platform written in Go, with Node.js integration to support the development of client-side Javascript and CSS code.
1 stars 0 forks source link

URLValues unmarshalling: Support Arrays in addition to slices #42

Open jacobconley opened 3 years ago

jacobconley commented 3 years ago

Right now when unmarshalling URL values, only slices are supported, and assumed to have the same length as their output type.

We could support fixed-size arrays as well, and perhaps verify that their input and output lengths match.

This ought to be easy enough to implement in param-unmarshal.go.