On Fri, 12 Feb 2016 11:36:00 -0800 (PST)
will <
wma...@gmail.com> wrote:
> Carlos and James
> You are both right.
> i was trying myCars := r.Form("cars") instead of myCars := r.Form
> ["cars"] //Note the square brackets
>
> I really suggest they update the documentation with such easy
> examples.
I'm afraid that's not realistically possible.
The docs clearly state that Form is a map[string]string,
and you're supposed to have completed at least some entry-level
tutorial on Go which would certainly contain a section on using
maps in Go. The API docs assume working knowledge of the language
itself and can't go all the way down to the basics--otherwise any
example in API docs would contain a tutorial on Go in it.