github go-playground/form v1.4.0
Release 1.4.0

latest releases: v4.3.0, v4.2.3, v4.2.2...
9 years ago

What's New?

Added Encoder to go along with the Decoder.

example

Notes

To maximize compatibility with other systems the Encoder attempts
to avoid using array indexes in url.Values if at all possible.

eg.

// A struct field of
Field []string{"1", "2", "3"}

// will be output a url.Value as
"Field": []string{"1", "2", "3"}

and not
"Field[0]": []string{"1"}
"Field[1]": []string{"2"}
"Field[2]": []string{"3"}

// however there are times where it is unavoidable, like with pointers
i := int(1)
Field []*string{nil, nil, &i}

// to avoid index 1 and 2 must use index
"Field[2]": []string{"1"}

Don't miss a new form release

NewReleases is sending notifications on new releases.