formam
formam copied to clipboard
a package for decode form's values into struct in Go
fixed #44
**Code:** ```golang var s struct { MapStringString map[string]string MapStringPtrStruct map[string]struct { ID string } MapStringMapStringString map[string]map[string]string } vals := url.Values{ "MapStringString[a[b][c]d]": []string{"MapStringString[a[b][c]d]"}, "MapStringString[name.with.dots]": []string{"MapStringString[name.with.dots]"}, "MapStringPtrStruct[k2]ID": []string{"MapStringPtrStruct[k2]ID"}, "MapStringMapStringString[a[b[c]d]]q]w": []string{"MapStringMapStringString[a[b[c]d]]q]w"}, } dec...
If I write an html form with a checkbox that has no explicit `value` attribute then when the checkbox is checked by the user the browser will send the string...