Open
Description
type Request struct {
TestInt *int `form:"test_int"`
TestString *string `form:"test_string"`
}
When providing empty value for "test_string" parameter(r.Form["test_string"]=""), Request.TestString will be not nil and set with the zero value "" as wanted.
But when "test_int" is provided with an empty string value(r.Form["test_int"]=""), Request.TestInt is still nil and shloud rather be set to the zero value 0.
It works great with Gorilla Schema
Metadata
Metadata
Assignees
Labels
No labels