github.com/stoewer/go-qparam (go): Package qparam provides convenient functions to read query parameters or form values into the fields of one (or more) target struct:  The following field types are supported: int, int8, int16, int32, int64, uint, uint8, uint16, uint32, uint64, float32, float64, bool, string. In addition the package handles also all types implementing the TextUnmarshaler interface from the encoding package. Furthermore pointers and slices of all before mentioned types are supported.  To handle hierarchically structured data, the package can also be used to read values into fields of nested structs. In such a case the keys of the source must use dots as some kind of path delimiter:  The reader can further be configured to use custom field tags and a custom name mapping, which keeps the necessity to add tags to struct fields at a minimum (check the examples for more details).
Keywords: go|golang|reflection|struct|url-parsing