proxy.golang.org : github.com/stoewer/go-qparam
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).
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/stoewer/go-qparam
Keywords:
go
, golang
, reflection
, struct
, url-parsing
License: MIT
Latest release: over 5 years ago
First release: about 7 years ago
Namespace: github.com/stoewer
Stars: 2 on GitHub
Forks: 1 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 24 days ago