Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net/http: Please document what kind of string Request.FormValue returns for different input types #5131

Closed
gopherbot opened this issue Mar 26, 2013 · 2 comments

Comments

@gopherbot
Copy link

by J.L.vanderZwan:

For example: using it to check if a checkbox is set returns "on" when checked,
but that has to be either inferred from knowing the HTML4 spec, or discovered by testing
the program.

A small summary of what kind of strings can possibly be returned would be really helpful.
@bradfitz
Copy link
Contributor

Comment 1:

We have to stop documenting somewhere. It may not be "on". It depends on the browser,
form, HTML, etc.

Status changed to WorkingAsIntended.

@gopherbot
Copy link
Author

Comment 2 by J.L.vanderZwan:

Well, if it's that unpredictable I understand, but what about a hint where to find more
information on that then? Because this is basically stating you can't use it unless you
already know what it does, which isn't exactly helpful either.
BTW, I submitted this as a result of this discussion, maybe you could chime in there?
https://groups.google.com/d/msg/golang-nuts/Zve45-XTmx8/cQIvloZvFC8J

@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants