Before I write something, (I've searched the docs and the mailing list and can't find what I'm looking for...) is there an easy way to do marshaling with straight FormValue(s) and a struct the way you'd do with JSON?
So instead of doing this:
type User struct {
FullName string
Username string
}
u := User {FullName: r.FormValue("full_name"), Username: r.FormValue("username")}
I want to do something like this:
type User struct {
FullName string
Username string
}
u := User{}
err = form.Unmarshal(r,u)
Is there anything that does something along this line?