form
                                
                                
                                
                                    form copied to clipboard
                            
                            
                            
                        :steam_locomotive: Decodes url.Values into Go value(s) and Encodes Go value(s) into url.Values. Dual Array and Full map support.
http.Header and url.Values are nearly the same except for that http.Header will handle the key name automatically. What if all the request data coming from header rather than request.Body?
### Package version eg. v4: ### Issue, Question or Enhancement: `DecodeCustomTypeFunc` should be not `func([]string) (interface{}, error)`, may be `func(reflect.Type,[]string) (interface{}, error)` will be better. also. `EncodeCustomTypeFunc`: `func(x interface{}) ([]string,...
## Fixes Or Enhances Related to: https://github.com/go-playground/form/issues/60 This PR introduces support for parsing arrays with trailing square brackets (`field[]=1&field[]=2`). This format is quite widespread and supported by numerous FE and...
## Fixes Or Enhances Add support for custom marshalling and unmarshalling to a struct. The motivation behind this mainly comes from using generics, when looking to register a custom encoder/decoder,...
### Package version eg. v9, v10: v4 ### Issue, Question or Enhancement: The url query can have fields like foo[bar]=baz, foo[0]=baz, foo[0]bar[0]baz=car and so on. The thing is that foo[0]...
When decoding a struct that has data nested inside two layers of slices or maps, the performance is impacted exponentially based on the number of values. ```go type FormRequest struct...