Package Usage: go: github.com/go-playground/form/v4
Package form Decodes url.Values into Go value(s) and Encodes Go value(s) into url.Values.
It has the following features:
Questions
out of the box supported types
string
bool
int, int8, int16, int32, int64
uint, uint8, uint16, uint32, uint64
float32, float64
struct and anonymous struct
interface{}
time.Time` - by default using RFC3339
a `pointer` to one of the above types
slice, array
map
`custom types` can override any of the above types
many other types may be supported inherently (eg. bson.ObjectId is
type ObjectId string, which will get populated by the string type
**NOTE**: map, struct and slice nesting are ad infinitum.
symbols
html
example decoding the above HTML
example encoding
Decoder
Encoder
you can tell form to ignore fields using `-` in the tag
you can tell form to omit empty fields using `,omitempty` or `FieldName,omitempty` in the tag
To maximize compatibility with other systems the Encoder attempts
to avoid using array indexes in url.Values if at all possible.
7 versions
Latest release: about 2 years ago
539 dependent packages
View more package details: https://packages.ecosystem.code.gouv.fr/registries/proxy.golang.org/packages/github.com/go-playground/form/v4